No, you can safely do this

 <form action="Details.cfm?statecodeID=#statecodeID#" method="post">
 <select name="sta" size="1"> 
<cfoutput query="states">
  <option value="#statecodeID#">#statename#</option>
</cfoutput>
 </select>
 <input type="submit" value="go" name="search"/> </form>


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


> -----Original Message-----
> From: Joel Polsky [mailto:[email protected]]
> Sent: Tuesday, 21 December 2010 12:12 PM
> To: cf-newbie
> Subject: Re: Drop Down Menu
> 
> 
> It shold be like this.  Simply loop your query to create the options in
the
> select.
> 
> <form action="Details.cfm?statecodeID=#statecodeID#" method="post">
> <select name="sta" size="1"> *<cfoutput> <cfloop query="states">
> *     * <option value="#statecodeID#">#statename#</option>
> </cfloop>
> </cfoutput>
> * </select>
>   <input type="submit" value="go" name="search"/> </form>
> 
> On Mon, Dec 20, 2010 at 5:30 PM, Andrew Scott
> <[email protected]>wrote:
> 
> >
> > 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:5168
> 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:5169
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to