|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
cfSWITCH ignoring expression.
I have a form that is passing 4 variables to an action page.
I am using <cfswitch expression= #form.status#> and <Cfcase value ="new"> on the action page to determine the appropriate process CfDump shows status = "new" in the form "status" is the name of the submit button. What is going on??? tia
__________________
J. Birdsell, ![]() www.carry-on-scheff-fans.com |
|
#2
|
|||
|
|||
|
<cfswitch expression= "#form.status#">
<cfcase value="old"> it's old </cfcase> <cfcase value="new"> it's new </cfcase> <cfdefaultcase> it's neither new nor old </cfdefaultcase> </cfswitch> could you try this? |
|
#3
|
|||
|
|||
|
Thanks for your input. The problem was a space in the value, trim() took care of it and it is now working properly.
Thanks again. |
|
#4
|
|||
|
|||
|
cool!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > cfSWITCH ignoring expression. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|