
October 19th, 2004, 04:19 PM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Checkboxes
I've searched high and low of this and i've worked on this over 7 days i still cant work it without bugs.
To be short i need a way to detect:
Unchecked checkboxes
Checked checkboxes
irrespective of their name without using a hidden feild to send out total number of checkboxes.
The problem is basically this, i'm creating list of smileys read from a DB. BUT say you have 28 smileys so IDs go from 0-27. Now when a smiley is removed, and another is added there still are only 28 smileys but the IDs are now 0-26 and 28 (with 27 missing). This gap can get larger or there could be any number of them. so a total is useless as the loop wuold go up to 27 (which is the total) but it wouldn't cover the 27th smiley with ID 28!
I cant name the checkboxes as an array because if i do i cant map it onto the DB (when the user wants to change tghe code) so the name HAS to be emo_$id (where $id is taken off the DB)
i need a simple way of saying how many checkboxes there are, how many checked and how many not checked. Could someone please help me out? I'd be very greatful
|