|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.... |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > display record after multiple checkbox selected |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|