how to redirect to other page?
| From: | JW | Date: | Mon, 05 Mar 2001 08:28:19 +0000 |
| Subject: | how to redirect to other page? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42589@lists.php.net to get a copy of this message | ||
i have used header to redirect to other page. however, it has said that i
have written something out the screen before header. would anyone please to
help me?
the following is all my code.
<?php
include "config.php3";
include "functions.php3";
$result = checkUser($nUserNo, $cPassword);
if ($result == false)
{
header ("HTTP/1.0 404 Not Found");
exit;
}
else
{
header ("../Form/first.html");
}
?>
The above function "checkUser" just used to check whether the user exist or
not. nothing will be written out to the screen if the user is found in the
database.