RE: [PHP] php redirect

From: Date: Fri, 26 Jul 2002 15:32:21 +0000
Subject: RE: [PHP] php redirect
Groups: php.general 
Request: Send a blank email to php-general+get-109772@lists.php.net to get a copy of this message
I here ya' there Martin. ASP is about next on my list. I'm just trying to get javascript and PHP under my belt a little better first....well ok, I'm waiting for my next paying client. I've found that you do have to use what you know to know whatever you need to do. I couldn't live without Javascript+PHP+SQL when it comes to site design. ASP is next on my list..... -----Original Message----- From: Martin Clifford [mailto:MLC1@nrc.gov] Sent: Friday, July 26, 2002 8:41 AM To: php-general@lists.php.net; jay.blanchard@niicommunications.com; david@pladesigns.com Subject: RE: [PHP] php redirect >>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 (#109772) next »