RE: [PHP] php redirect
| From: | Jay Blanchard | Date: | Fri, 26 Jul 2002 15:18:55 +0000 |
| Subject: | RE: [PHP] php redirect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109748@lists.php.net to get a copy of this message | ||
[snip]
I have a redirect i would like to do using php. It will go something like
this
if (mysql_db_query ($dbname, $query, $link)) {
{redirect would go here}
} else {
{a different location on this redirect here}
How can i accomplish this? i just do not know php well enough to code the
redirect. Please help. Thanks in advance and for all of the past help.
[/snip]
Use the header() function
http://www.php.net/manual/en/function.header.php
HTH!
Jay
My reality check bounced
*************************************
* Want to meet other PHP developers *
* in your area? Check out: *
* http://php.meetup.com/ *
* No developer is an island ... *
*************************************