Re: How to index HTML fields for Javascript and PHP at same time?
| From: | pierre-yves | Date: | Tue, 04 Sep 2001 02:54:44 +0000 |
| Subject: | Re: 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-65824@lists.php.net to get a copy of this message | ||
Hello,
maybe you could have a hidden field named myfield[], this one will be for
the index
in php that you will build with a javascript function when you submit the
form.
py
----- Original Message -----
From: "M" <mavemus@yahoo.com.br>
To: <php-general@lists.php.net>
Sent: Monday, September 03, 2001 10:12 PM
Subject: [PHP] How to index HTML fields for Javascript and PHP at same time?
> Hello, I have table with lot of <input type = text name=myfield ...>
> fields.
> I need to refer these fields like vector in PHP and Javascript mode.
> 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.
>
> Thanks in advance
>
> Miguel
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>