ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 30th, 2004, 02:13 AM
izah_2 izah_2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 34 izah_2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 2 m 48 sec
Reputation Power: 4
display record after multiple checkbox selected

hai...i got problem here....in my form, i allowed user to select multiple checkbox..all the value for checkbox is default to 'yes'...here is example...


<td><input type="checkbox" name="PJ" value="yes">
Petaling Jaya</td>
<td><input type="checkbox" name="PP" value="yes">
Pulau Pinang</td>



the problem is when i want to display, i got error...the value for every checkbox is located in their own field in database....every checkbox have different field in database...
this is how i done but got error...


<cfif #DOCUMENT_STATERELATED_3# EQ 'yes'><cfset state = 'PJ'>
</cfif>
<cfif #DOCUMENT_STATERELATED_4# EQ 'yes'><cfset state = 'PP'>
</cfif>


for your information, the field in my database is #DOCUMENT_STATERELATED_3# and #DOCUMENT_STATERELATED_3# and the form to display is as below...


<font size="1" face="Verdana"> #state# </FONT>

if i checked only one checkbox. it will display but if i checked multiple checkbox, i got error...how can i fix it?


thank you....

Reply With Quote
  #2  
Old December 30th, 2004, 07:53 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,648 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 12 h 8 m 8 sec
Reputation Power: 53
What is the error?
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > display record after multiple checkbox selected


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 4 hosted by Hostway