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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to