RE: [PHP] how to acess php array var in Js?

From: Date: Wed, 28 Nov 2001 00:51:44 +0000
Subject: RE: [PHP] how to acess php array var in Js?
Groups: php.general 
Request: Send a blank email to php-general+get-75826@lists.php.net to get a copy of this message
try : form_name["cb[]"] -----Original Message----- From: Christian Dechery [mailto:cdechery@easynet.com.br] Sent: Wednesday, November 28, 2001 11:53 AM To: php-general@lists.php.net Subject: [PHP] how to acess php array var in Js? If I have a series of checkboxes like this: <input type=checkbox name="cb[]" value="1"> This is 1 <input type=checkbox name="cb[]" value="2"> This is 2 <input type=checkbox name="cb[]" value="3"> This is 3 <input type=checkbox name="cb[]" value="4"> This is 4 how can I acess "cb[]" in Javascript other than using the "elements" array?? I can't do cb[][0].checked for example... it gives me parse error... using the elements array is not that nice codewise... any hints? _____________________________ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br -- 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

« previous php.general (#75826) next »