RE: [PHP] php redirect

From: Date: Fri, 26 Jul 2002 15:27:19 +0000
Subject: RE: [PHP] php redirect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109754@lists.php.net to get a copy of this message
[snip] 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"; } [/snip] Isn't this ASP....? ;^] Jay My other car is a broom ************************************* * Want to meet other PHP developers * * in your area? Check out: * * http://php.meetup.com/ * * No developer is an island ... * *************************************

« previous php.general (#109754) next »