RE: [PHP] php redirect
| From: | David Buerer | Date: | Fri, 26 Jul 2002 15:00:41 +0000 |
| Subject: | RE: [PHP] php redirect | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-109753@lists.php.net to get a copy of this message | ||
This is the only way I've figured out how to do it. It seems to work really
well.
if (mysql_db_query ($dbname, $query, $link)) {
gotourl("myurl1");}
} else {
gorourl("myurl2");}
function gotourl(myurl)
{
echo "<SCRIPT language=javascript>";
echo " window.location=$myurl;";
echo "</SCRIPT>\n";
}
-----Original Message-----
From: Tyler Durdin [mailto:linuxgeek23@hotmail.com]
Sent: Friday, July 26, 2002 8:14 AM
To: php-general@lists.php.net
Subject: [PHP] php redirect
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.
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php