EasyCFM.COM ColdFusion Forums / Coding Help! / cfselect - output

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: cfselect - output

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

seeker
11-22-2002 @ 12:26 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 3
Joined: Oct 2002

I have an database input/update form using session variables. I've used CFSET to set the variables. The first form is supposed to display a selection list based on query results. I'm not getting any output. Code is:

<CFFORM
   ACTION="ServerUpdates.cfm?
           StepNum=#SESSION.UpdateServer.Stepnum#"
and then the query, followed by:
     <CFSELECT     
     QUERY="GetServers"
     NAME="TagNo"
     DISPLAY="ServerID"
     VALUE="TagNo"
     REQUIRED="yes"
     MESSAGE="You must select a server"
     SELECTED="#SESSION.ServerInfo.TagNo#"/>

This is a minor tweaking of code from Ben Forta's book and I've checked and rechecked and don't see where I've done anything different. (The CD that came with the book is blank...it happens.) The book is good. Anyone available to tell me where I've gone wrong?
Thanks,
Seeker

Webmaster
12-12-2002 @ 3:58 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Administrator
Posts: 4542
Joined: Jan 2002

This is why I don't like CFSELECT Smile

Do this insetead:

<select name="TagNo">
  <option value="#TagNo#">#ServerID#</option>
</select>


To give you a general idea...

Thanks,
Pablo Varando
EasyCFM.COM, LLC.


Website Designed and Developed by Pablo Varando.