> -----Original Message-----
> From: Ernest E Vogelsinger [mailto:ernest@;vogelsinger.at]
> Sent: 06 November 2002 18:49
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to