Does 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
This manual page explains:
http://uk.php.net/manual/en/language.variables.variable.php
HTH,
Mike
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php