RE: [PHP] Calling HTML pages
| From: | Jay Blanchard | Date: | Wed, 04 Jun 2003 20:18:31 +0000 |
| Subject: | RE: [PHP] Calling HTML pages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150253@lists.php.net to get a copy of this message | ||
[snip]
I was looking for a function that will take you to a html page. For
instance.
I have a function that checks for !empty values in $_POST; What I would
like to do is if the field is empty then
go back to the form. I have a function
function display_error ($err) {
echo $err; # I need to redirect or automatically go to the previous
page.
}
Is their a PHP function already written that does this ?
[/snip]
header() is the function you're looking for.
HTH!
Jay