R: [PHP] Fw: Arrays of Form Field

From: Date: Mon, 09 Oct 2000 20:31:35 +0000
Subject: R: [PHP] Fw: Arrays of Form Field
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-19239@lists.php.net to get a copy of this message
Try <input type=hidden name="a[1]" value=1> <input type=hidden name="a[2]" value=2> In javascript the fields have name "a[1]", "a[2]", ... and in php you have your array "a" Bye Darvin "Arun" <arun@ticklewit.com> wrote in message 00ec01c0302b$29ab6800$2264a8ac@corp.caltiger.com... ----- Original Message ----- From: Arun To: php-general@lists.php.net Sent: Saturday, October 07, 2000 12:19 PM Subject: Arrays of Form Field Hi listers, I have to create array of hidden form fields, which can be used both in javascript and php. How can i do it. One of the books on php says to define an array of form field..it is to be defined like the following <input type=hidden name="a[]" value=1> <input type=hidden name="a[]" value=2> <input type=hidden name="a[]" value=3> Problem is when i define the array like this i have problems accessing it in javascript. Is there any work around this problem. Thanks Arun TickleWit.com Pvt Ltd 0 98300 24824 91 33 3574692

« previous php.general (#19239) next »