HTML_QuickForm With Arrays as Text Elements?
| From: | James 'Chip' Kaufman | Date: | Wed, 05 Nov 2003 15:25:13 +0000 |
| Subject: | HTML_QuickForm With Arrays as Text Elements? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-8774@lists.php.net to get a copy of this message | ||
What is the correct way of doing this sort of thing:
$form->addElement ('text', "reqdate[]", 'Req. Start',
array('size'=>'10', 'id'=>'sd0'));
$form->addElement ('text', "reqdate[]", 'Req. Start',
array('size'=>'10', 'id'=>'sd1'));
I need to validate the data using Javascript, and $reqdate[] will look
like:
reqdate[0] = '12/15/2003'
reqdate[1] = '01/22/2004'
I know how to do it w/o QuickForm. Can it be done with QuickForm?
--
James 'Chip' Kaufman
jkaufman@wamnetgov.com
952-346-3532
PGP key: 697D43DE