note 26086 deleted from faq.html by sobak
| From: | sobak@php.net | Date: | Fri, 25 Nov 2016 05:43:13 +0000 |
| Subject: | note 26086 deleted from faq.html by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207645@lists.php.net to get a copy of this message | ||
Note Submitter: bas at cipherware dot nospam dot com
----
Ad 3. "How do I create arrays in a HTML <form>?":
You may have problems to access form elements, which have [] in their name, from JavaScript. The
following syntax works in IE and Mozilla (Netscape).
index = 0;
theForm = document.forms[0];
theTextField = theForm['elementName[]'][index];