PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 19th, 2004, 04:19 PM
Dhruv Dhruv is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 3 Dhruv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old October 19th, 2004, 06:32 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Moderator
Click here for more information.
 
Join Date: Oct 2003
Location: Canada
Posts: 331 Viper_SB User rank is Private First Class (20 - 50 Reputation Level)Viper_SB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 53 m 7 sec
Reputation Power: 5
A relational data struture should work.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Checkboxes


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway