RE: [PHP-DB] another newbie question...

From: Date: Mon, 16 Sep 2002 14:58:44 +0000
Subject: RE: [PHP-DB] another newbie question...
Groups: php.db 
Request: Send a blank email to php-db+get-21774@lists.php.net to get a copy of this message
Although your question is not really database-related, here's what I have done recently with a page of my own: if(test condition here) { header("Location: http://localhost/spidey/public/home.html"); } Seems to work just fine for what I need it to do. Should work just fine for an external URL (www.something.com) as well. I'm just running it in a test environment currently. I suppose you could also use a SWITCH statement instead of an IF statement if you know what the results should be. Rich -----Original Message----- From: epeloke@echoman.com [mailto:epeloke@echoman.com] Sent: Monday, September 16, 2002 11:14 AM To: php-db@lists.php.net Subject: [PHP-DB] another newbie question... Ok, here is another dumb newbie question, based on what the user enters for a username, I want to direct them to one of three different sites...is this even close? I am getting errors but am not sure if it is a simple fix or if it is all wrong...The username is sent from a form from the previous page. Thanks, Eddie <head> <?php if $username="eddie"{ echo "<META HTTP-EQUIV="Refresh" CONTENT="2; URL=http:\\www.amazon.com">"; } ?> </head> <body> -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#21774) next »