<cfif isdefined('form.ask')> <cfset session.myVar = form.mySelect /> <cfoutput>#session.myVar#</cfoutput> </cfif>
<cfoutput> <form action="#cgi.script_name#" method="post"> Questions to ask on CF-Talk: <select name="mySelect"> <option value="how">How?</option> <option value="who">Who?</option> <option value="what">What?</option> <option value="where">Where?</option> <option value="when">When?</option> <option value="Where can I get the CFWACK?">Where can I get the CFWACK</option> </select> <input type="submit" name="ask" value="Ask" /> </form> </cfoutput> ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: erik tom [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 23, 2007 4:01 PM To: CF-Talk Subject: Re: get the value of the drop down and pass it to the cfquery > What do you have the submit button doing? Does it actually submit to > > the server, or just forward to the next tab? > > For CF to process information, you have to make a server trip of some > > kind. > > If you are making the server trip, but not seeing the information > passed, what are you naming your dropdown, and how are you referencing > > it in the query? > > --Ben Doom > The button supposed to submit so I can set the session variable to the next tab > erik tom wrote: > > I need to be able get the value from the drop down and pass ethis > value to cfquery function which located on the second tab of the form. > Once i selected the drop down item i clicked on the submit button and > going to the second tab but nothing getting passed to the query. > Help????? > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291951 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4