note 28265 added to language.variables.external
| From: | vgarcia at dserver dot net | Date: | Tue, 07 Jan 2003 19:46:32 +0000 |
| Subject: | note 28265 added to language.variables.external | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41799@lists.php.net to get a copy of this message | ||
Here a code to optain all posible vars into a POST on register page:
$_table_users = array('id_users','name','foo','foo2',
.....);
$numColumns = count($HTTP_POST_VARS);
$arrayValues = array_values($HTTP_POST_VARS);
for ($i = 0 ; $i<$numColumns ; $i++){
$_table_users[$arrayValues[$i]] = $HTTP_POST_VARS[$arrayValues[$i]];
}
--
http://www.php.net/manual/en/language.variables.external.php
http://master.php.net/manage/user-notes.php?action=edit+28265
http://master.php.net/manage/user-notes.php?action=delete+28265
http://master.php.net/manage/user-notes.php?action=reject+28265