RE: [PHP-DB] validating checkboxes

From: Date: Thu, 15 Mar 2001 17:09:46 +0000
Subject: RE: [PHP-DB] validating checkboxes
Groups: php.db php.general 
Request: Send a blank email to php-general+get-44067@lists.php.net to get a copy of this message
The javascript syntax is document.form_name.elements['preq[]'][indx] -Stewart -----Original Message----- From: Adv. Systems Design [mailto:asd_2000@yahoo.com] Sent: 15 March 2001 15:39 To: PHP List Subject: [PHP-DB] validating checkboxes Hello all: I have to validate that AT LEAST ONE checkbox is checked in a series of checkboxes...the checkboxes all use the name=preq[] so that when I process it, it will go into a php array...the problem is that I want to validate it using javascript and the [] in the object name (preq[]) causes problems in traversing the checkbox values to check if they are =true!! Any ideas? Validating on the PHP side is not an option because this page is part of a series of pages and I encounter the dreaded "post operation reload" problem if the user has to hit the back button. Thanks Luis __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#44067) next »