RE: [PHP] How to index HTML fields for Javascript and PHP at same time?
| From: | Brett | Date: | Fri, 10 Aug 2001 03:19:37 +0000 |
| Subject: | RE: [PHP] How to index HTML fields for Javascript and PHP at same time? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65830@lists.php.net to get a copy of this message | ||
<snip>
>When I write <input type=text name=myfield[]... > then I can see values
>in PHP sccript, BUT can't see values in javascript mode, thats to say
>document.form.myfield[index].value doesnt work.
>On the other side, when I make <input type=text name=myfield....> I can
>see indexed values in Javascript BUT not in PHP script.
</snip>
I use the following in my javascript to work with the field[] values:
this.form.elements['addzone[]']
HTH,
Brett