RE: [PHP] Code Advice
| From: | Ford, Mike [LSS] | Date: | Wed, 06 Nov 2002 19:08:17 +0000 |
| Subject: | RE: [PHP] Code Advice | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-123046@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Ernest E Vogelsinger [mailto:ernest@vogelsinger.at]
> Sent: 06 November 2002 18:49
> To: php-general@lists.php.net
> Subject: Re: [PHP] Code Advice
>
>
> Ever had a headache with posted parameters, as to where to
> look for the
> value, in _GET or _POST? Try this:
> foreach ($_POST as $name => $value)
> $_GET[$name] =& $value;
> Your application may safely use only the $_GET array after
> this, the POSTed
> variables correctly overriding their GET counterparts. The
> "=&" reference
> is there for optimization - faster and less memory-consuming.
Uh... isn't this what $_REQUEST is for??
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211