Page is a not externally linkable
Adam5000 - 11:58 am on Mar 17, 2011 (gmt 0)
Thanks brotherhood and I'm still having a little trouble with it. When I insert the code to redirect the visitor I get an error message that reads "Cannot modify header information. Headers already sent."
I've removed all the white space (at least I think I have) and below is the bare bones code with the error in it.
The page is saved as test_page.php and the method is "post" so the form posts to itself.
At this point that's all I know.
Help!
<html>
<head>
<title>Test page</title>
</head>
<body>
<form action="test_page.php" method="post">
<input type="text" name="First_name">
<input type="submit" value="Enter">
<?php
if ($first_name=="Jane")
echo "Jane is here";
else
header('Location: www.google.com');
exit(0);
?>
</form>
</body>
</html>