Re: Quickform - multiple rows
| From: | Andreas Blaafladt | Date: | Fri, 25 Mar 2005 18:26:45 +0000 |
| Subject: | Re: Quickform - multiple rows | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18342@lists.php.net to get a copy of this message | ||
* Justin Patrin <papercrane@gmail.com> [2005-03-25 19:12:58]:
[...]
> > Eg: <input type="text" name="user[]" value="Joe" />
> >
> > With this, I could access the the values using $_POST['user'][index],
> > where index would be a number from 0 to n-1 numbers of input-fields.
> >
> > However, this approach doesn't seem to be possible in QuickForm.
> >
> > Hopefully, someone with more QuickForm-experience will say a few words
> > about this. :-)
> >
>
> Of course this is possible....but you can't setDefauls correctly on
> them as they all have the same name. Also, the processing may not work
> right.
>
> It's much better to use an index.
>
Ah, thanks. :-)
/Andreas
--
andreas blaafladt <andreas@blaafladt.no>