> -----Original Message-----
> From: Erika L. Walker [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 21, 2008 5:48 PM
> To: CF-Community
> Subject: am i missing something here? select
> 
> got a variable. form.QISALESPERSON
> 
> It is equal to "Jay"
> 
> I have the following form element:
> 
>   <select name="QISALESPERSON">
>    <option value="">Please Choose</option>
>    <option value="Mike" <cfif trim(form.QISALESPERSON) EQ
> "Mike">selected</cfif>>Mike</option>
>    <option value="Jay" <cfif trim(form.QISALESPERSON) EQ
> "Jay">selected</cfif>>Jay</option>
>   </select>
> 
> For all that is holy, the proper choice is not being selected when I
> load
> the form. Yes, the form.QISALESPERSON var does indeed contain "Jay", i
> tested the cfif statement in the please choose value and it output
> "Jay" ...

Not for nothing but did you trim that test as well?

If you output the value try it with quotes around it to see if you're
carrying any spaces on the value that could screw up your evaluation.

I've spent way to long in my life trying to figure out similar things when
"Jay" ended up being "Jay "... not that I'm suggesting that you're as stupid
as me.  ;^)

Jim Davis


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:251476
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to