Re: Get "nice" variables from POST
| From: | Michael Nolan | Date: | Thu, 11 Mar 2004 15:47:32 +0000 |
| Subject: | Re: Get "nice" variables from POST | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180175@lists.php.net to get a copy of this message | ||
Ryan A wrote:
This manual page explains: http://uk.php.net/manual/en/language.variables.variable.php HTH, MikeDoes this look nicer? $fields = array('username', 'password', ...); foreach($fields as $key) $$key = $_POST[$key];Hi Marek, A bit confused...whats the meaning of the double $ for "key"...or is that a typo? Thanks, -Ryan