Re: generating arrays using $_REQUEST/$_GET/$_POST
| From: | Matt Matijevich | Date: | Thu, 22 Jan 2004 18:30:33 +0000 |
| Subject: | Re: generating arrays using $_REQUEST/$_GET/$_POST | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-175449@lists.php.net to get a copy of this message | ||
<snip>
I am having problems generating an array based on data passed from a
form.
The form has a series of fields with the same name "math". When
submited if
i have register_globals=on i have no problems calling a $math variable
and
it spits out all the values assigned to math, however with
register_globals=off only the last value passed in the HTTP string is
being
returned.
Any suggestions welcome.
</snip>
Name the form fields math[], php will treat that as an array.