note 26086 added to faq.html
| From: | bas at cipherware dot nospam dot com | Date: | Thu, 17 Oct 2002 14:52:00 +0000 |
| Subject: | note 26086 added to faq.html | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38207@lists.php.net to get a copy of this message | ||
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];
--
http://www.php.net/manual/en/faq.html.php
http://master.php.net/manage/user-notes.php?action=edit+26086
http://master.php.net/manage/user-notes.php?action=delete+26086
http://master.php.net/manage/user-notes.php?action=reject+26086