note 11495 deleted from reset by ronabop
| From: | ronabop@php.net | Date: | Sun, 25 Feb 2001 01:43:04 +0000 |
| Subject: | note 11495 deleted from reset by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11553@lists.php.net to get a copy of this message | ||
re: array functions on HTTP form input
hehe... thought it DOES HELP to let your function accessing the predefined variable, such as
$HTTP_POST_VARS, know that it's a GLOBAL
ex:
<?
function parse() {
list($key, $val) = each($HTTP_POST_VARS);
}
parse()
?>
returns an error. make sure to put the line:
global $HTTP_POST_VARS;
into the function before you try to acces the variable's values.
pardon the false alarm.