How to index HTML fields for Javascript and PHP at same time?

From: Date: Tue, 04 Sep 2001 02:12:30 +0000
Subject: How to index HTML fields for Javascript and PHP at same time?
Groups: php.general 
Request: Send a blank email to php-general+get-65823@lists.php.net to get a copy of this message
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

« previous php.general (#65823) next »