OVERVIEW | SETUP | USER GUIDE | DOWNLOAD | TODO | NEWS | FAQ | FORUM | MAILING LIST | SUPPORT


FORUM  

Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
Tip: GET Variables
Posted by: HTML Samurai (---.bright.net)
Date: July 6, 2004 06:03PM

If you, as I did, want to record $_GET or URL variables, add the following under $To = $PHP_SELF;

/* Start Samurai's code to capture and record all GET (or URL) variables */
$i = 0;
foreach($_GET as $key => $value)
{
if($i == 0)
$To .= "<br>?".$key."=".$value;
else
$To .= "<br>&".$key."=".$value;

$i++;
}
/* End Samurai's GET var code */

I hope this helps. Email me if you need help with this, I might not come back to the forum.



-HTML Samurai

Re: Tip: GET Variables
Posted by: jordan (207.228.148.---)
Date: August 6, 2004 09:23PM

omfg... this is the WORST way of doing this!?!?!

hey buddy... $_SERVER['QUERY_STRING'] exists for a reason!

Re: Tip: GET Variables
Posted by: duncane (---.turboadsl.nordnet.fr)
Date: May 27, 2006 08:08AM

I think :

$To = getenv("QUERY_STRING");

is the best way to do it, because $_SERVER vars are not active on all servers, but getenv is.



Sorry, only registered users may post in this forum.

Contact