RE: [PHP] Redirect then error message to user
| From: | Jay Blanchard | Date: | Fri, 22 Oct 2004 17:29:53 +0000 |
| Subject: | RE: [PHP] Redirect then error message to user | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-200106@lists.php.net to get a copy of this message | ||
[snip]
{
header("Location: http://www.xxxxxx.com/page1.php"
);
print "You have errors";
exit;
}
}
[/snip]
You either need to carry info about the error in a session variable or
url string or something...above your redirect happens before any error
can be sent to the browser....