The form tag should be on the outside of the cfoutput query.

Regards,
Andrew Scott
http://www.andyscott.id.au/


> -----Original Message-----
> From: Barry Mcconaghey [mailto:[email protected]]
> Sent: Tuesday, 21 December 2010 7:10 AM
> To: cf-newbie
> Subject: Drop Down Menu
> 
> 
> Hello Group.
> 
> I'm trying to display this code below on my website. I need the
statecodeID
> in the form action. This code below will display 50 drop-down boxes.
> 
> <cfoutput query="states">
> <form action="Details.cfm?statecodeID=#statecodeID#" method="post">
> 
>     <select name="sta" size="1">
> 
>         <option value="#statecodeID#">#statename#</option>
> 
>     </select>
>     <input type="submit" value="go" name="search"/> </form>
> 
> Thanks,
> 
> Barry
> </cfoutput>
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~|
> Order the Adobe Coldfusion Anthology now!
> http://www.amazon.com/Adobe-Coldfusion-
> Anthology/dp/1430272155/?tag=houseoffusion
> Archive: http://www.houseoffusion.com/groups/cf-
> newbie/message.cfm/messageid:5163
> Subscription: http://www.houseoffusion.com/groups/cf-
> newbie/subscribe.cfm
> Unsubscribe: http://www.houseoffusion.com/groups/cf-
> newbie/unsubscribe.cfm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5167
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to