RE: [PHP] Passing arguments to the same script

From: Date: Mon, 02 Dec 2002 04:07:39 +0000
Subject: RE: [PHP] Passing arguments to the same script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126669@lists.php.net to get a copy of this message
On Sun, 1 Dec 2002, Troy May wrote: > The only thing that EVER gets displayed is the final else. (Main content > goes here.) What am I doing wrong? Once again, the links are in this > format: <a href="index.php?samples"> <a href="index.php?samples=1"> To get the desired results with the code you posted, you have to give your query string parameter(s) a value (as above). If you don't want to give samples a value, then examine the query string as a whole: $_SERVER[QUERY_STRING] if( $_SERVER[QUERY_STRING] == "samples" ) ... g.luck, ~Chris

« previous php.general (#126669) next »