RE: [PHP] php redirect

From: Date: Fri, 26 Jul 2002 15:41:11 +0000
Subject: RE: [PHP] php redirect
Groups: php.general 
Request: Send a blank email to php-general+get-109765@lists.php.net to get a copy of this message
>>I don't know if and haven't learned it so it couldn't be. After all, how many programming languages does one need to know??<< Heh heh heh. Jack of all trades, master of some. That's how I look at it. I'd say you need to know a little of everything. I know (X)HTML, CSS-1-2-P, JS, PHP, SQL, etc. The list just goes on. And the thing is, I use ALL of them ALL the time ;o) -----Original Message----- From: Jay Blanchard [mailto:jay.blanchard@niicommunications.com] Sent: Friday, July 26, 2002 8:27 AM To: 'David Buerer'; php-general@lists.php.net Subject: RE: [PHP] php redirect [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 ... * ************************************* Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/

« previous php.general (#109765) next »