RE: [PHP] Passing arguments to the same script

From: Date: Mon, 02 Dec 2002 03:38:54 +0000
Subject: RE: [PHP] Passing arguments to the same script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126666@lists.php.net to get a copy of this message
> I'm sure this is easy, but I'm drawing a blank. I need to have links at > the > bottom of the page that passes arguments to the same script (itself) when > it > gets reloaded. How do we do this? > > I have the links like this now: > > <a href="index.php?samples"> > > How do I determine what is passed? I need to do an "if" statement with > different outputs depending on the argument. > > if ($samples) { do something } if(isset($_GET['samples'])) { do something } ---John Holmes...

« previous php.general (#126666) next »