validating checkboxes
| From: | Adv. Systems Design | Date: | Thu, 15 Mar 2001 15:38:42 +0000 |
| Subject: | validating checkboxes | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7516@lists.php.net to get a copy of this message | ||
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/