Re: Re: Passing variables to a PHP script on clicking a hyperlink

From: Date: Fri, 24 Aug 2007 08:10:34 +0000
Subject: Re: Re: Passing variables to a PHP script on clicking a hyperlink
References: 1 2 3  Groups: php.db php.general 
Request: Send a blank email to php-general+get-261216@lists.php.net to get a copy of this message
On 8/24/07, Goltsios Theodore <tgol@kinetix.gr> wrote: > the posted or got option buy using the $_REQUEST array ($_GET and $_POST are > included in that like a less lame solution). Let's say you have a Please do not encourage the use of $_REQUEST. You might as well just tell people to enable register_globals again. Use $_GET, $_POST, $_SESSION, $_COOKIE, $_SERVER, etc. for the appropriate source of data. $_REQUEST is laziness and introduces most of the same issues that was the reasoning behind disabling register_globals to begin with. (As for dropdowns, that's just an in-browser method of collecting data and sending the key/value pairs in POST or GET... IMHO the HTML portion should already be known before someone steps into the realm of PHP and server-side programming) - mike

« previous php.general (#261216) next »