Could not find an error with your code, but don't have the rest of
your form info to test it properly.  However, this works:

<form name="form1" method="post" action="erika.cfm">
  <select name="QISALESPERSON">

        <cfif isdefined("go")>
        <cfoutput>
    <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>
</cfoutput>
<cfelse>
<option value="">Please Choose</option>
<option value="Mike">Mike</option>
<option value="Jay">Jay</option>
</cfif>
  </select>
  <input type="submit" name= "go" value="go" />
</form>

On Jan 21, 2008 2:47 PM, Erika L. Walker <[EMAIL PROTECTED]> wrote:
> 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" ...
>
> rest of the select fields on the form work fine.... only this one is kicking
> me. It's the first select in a series.
>
> Just wondering if I have a typo somewhere my eyes aren't seeing ...
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:251507
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5

Reply via email to