Re[2]: [PHP] Get "nice" variables from POST

2004-03-12 Thread Richard Davey
Hello trlists, Friday, March 12, 2004, 3:56:23 AM, you wrote: tcc> It seems to me that for security one wants both things -- first, to tcc> move only what you need from _POST into the global symbol table, and tcc> second, validate it thoroughly. Indeed.. roll-on input filters in PHP5 :) -- Bes

Re: Re[2]: [PHP] Get "nice" variables from POST

2004-03-11 Thread Ryan A
Hey Richard, > See Chapter 7 (Variables) of the PHP manual. I remember reading about variable variables and also remember not understanding them :-) Will go through ch.7 again. Thanks. Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re[2]: [PHP] Get "nice" variables from POST

2004-03-11 Thread Richard Davey
Hello Ryan, Thursday, March 11, 2004, 3:29:32 PM, you wrote: >> Does this look nicer? >> >> $fields = array('username', 'password', ...); >> foreach($fields as $key) $$key = $_POST[$key]; RA> A bit confused...whats the meaning of the double $ for "key"...or is that a RA> typo? It creates a vari