Re: field names with square brackets
| From: | Massimiliano Arione | Date: | Wed, 08 Jun 2005 07:17:24 +0000 |
| Subject: | Re: field names with square brackets | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19510@lists.php.net to get a copy of this message | ||
Ed Greenberg wrote:
HTML_QuickForm seems to be taking my fieldnames and adding a pair of square brackets on the end. ThusIt's correct: it's needed to support the multiple choice in select.
The problem with this is that you can't direct Javascript at document.formname.counties[]AFAIR, you can do it be defining counties[] as variable. E.g. var myvar = 'counties' + '[' + ']'; document.formname.myvar; I'm not absolutely sure of this. Try to take a look to HTML_QuickForm_SelectFilter, maybe you can find something in it. Or, of course, try to search in a javascript-related list ;-) -- Massimiliano Arione :: http://www.garak.it/ :: * NO WORD * http://gnu.org/philosophy/no-word-attachments.html * NO HTML * http://efn.no/html-bad.html