Re: I can't code today to save my life! :(

From: Date: Sat, 04 Jan 2003 21:43:55 +0000
Subject: Re: I can't code today to save my life! :(
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-130260@lists.php.net to get a copy of this message
try if(stristr($_SERVER['REREQUEST_URI'], "register.php"){ echo "at register"; } else { echo "Not"; } Not tested but should work.. also case insensitive now... *********** REPLY SEPARATOR *********** On 04/01/2003 at 4:21 PM Phil Powell wrote: >I have $REQUEST_URI that will take two values: > >"/event/login.php" > >and > >"/event/register.php" > >What I need to do is so simple it's brainless!!! I need to look into >$REQUEST_URI and find if it contains "register.php". I tried this and it >completely failed, the results were wrong every time: > >if (strpos($REQUEST_URI, "register.php") !== 0) { // you're in login.php } > >I don't know why I can't get this other than weekend stupidity, can >someone help? > >Thanx >Phil

« previous php.general (#130260) next »