Re: form vars
| From: | Ryan Adams | Date: | Tue, 27 Jun 2000 15:56:43 +0000 |
| Subject: | Re: form vars | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3362@lists.php.net to get a copy of this message | ||
I've found it useful in the past to name the form vars as array elements
so that when it is submitted you already have a nice array to work with.
i.e. <input type=text name=dataset[myname]>
<input type=text name=dataset[somethingelse]>
hope this helps,
Ryan
On Tue, Jun 27, 2000 at 10:08:37AM +0000, kevin dowd wrote:
> Hello,
>
> Is there a way with php3 to round up all vars sent to a script via a
> form. Ideally I'll whip them all up into an associative array.
>
> I have too many form vars and don't want to have to test to see if
> each one has a value.
> --
> regards
>
> shoreditch
> london ec2a
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
---end quoted text---