The javascript syntax is
document.form_name.elements['preq[]'][indx]
-Stewart
-Original Message-
From: Adv. Systems Design [mailto:[EMAIL PROTECTED]]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Database 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]