thanks a lot that worked perfectly!


>From: James Maltby <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: drop down box
>Date: Mon, 24 Jul 2000 12:57:55 +0100
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
><HTML>
><HEAD>
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
><META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
><TITLE>RE: drop down box</TITLE>
></HEAD>
><BODY>
>
><P><FONT SIZE=2>A clunky way of doing this is to use CFIF in your option 
>values:</FONT>
></P>
>
><P><FONT SIZE=2>Like:</FONT>
><BR><FONT SIZE=2>&lt;cfoutput query=&quot;getdetails&quot;&gt;</FONT>
><BR><FONT SIZE=2>&lt;p&gt;Status:</FONT>
><BR><FONT SIZE=2>&nbsp; &lt;select name=&quot;#pol_status#&quot; 
>size=&quot;1&quot;&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option value=&quot;All&quot; 
>&lt;CFIF #pol_status# eq 
>&quot;All&quot;&gt;slected&lt;/cfif&gt;&gt;All&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option value=&quot;New&quot; 
>&lt;CFIF #pol_status# eq 
>&quot;New&quot;&gt;slected&lt;/cfif&gt;&gt;New&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option value=&quot;Active&quot; 
>&lt;CFIF #pol_status# eq 
>&quot;Active&quot;&gt;slected&lt;/cfif&gt;&gt;Active&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option value=&quot;Archive&quot; 
>&lt;CFIF #pol_status# eq 
>&quot;Archive&quot;&gt;slected&lt;/cfif&gt;&gt;Archive&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option value=&quot;Hide&quot; 
>&lt;CFIF #pol_status# eq 
>&quot;Hide&quot;&gt;slected&lt;/cfif&gt;&gt;Hide&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp; &lt;/select&gt;</FONT>
></P>
>
><P><FONT SIZE=2>You may need to create a param &lt;cfparam 
>name=&quot;pol_status&quot; default=&quot;&quot;&gt; and add this line 
>above your cfoutput - can't remember why though!</FONT></P>
>
><P><FONT SIZE=2>James</FONT>
></P>
><BR>
>
><P><FONT SIZE=2>-----Original Message-----</FONT>
><BR><FONT SIZE=2>From: janey smith [<A 
>HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT>
><BR><FONT SIZE=2>Sent: 24 July 2000 12:44</FONT>
><BR><FONT SIZE=2>To: [EMAIL PROTECTED]</FONT>
><BR><FONT SIZE=2>Subject: drop down box</FONT>
></P>
><BR>
>
><P><FONT SIZE=2>having a problem passing values submitted in a drop down 
>list box.</FONT>
><BR><FONT SIZE=2>on my form page the user selects their choices from the 
>drop down, the the </FONT>
><BR><FONT SIZE=2>user can choose to edit these choices on the next page, 
>their original </FONT>
><BR><FONT SIZE=2>choices shoud appear on the edit page, which 
>follows:</FONT>
></P>
>
><P><FONT SIZE=2>&lt;CFQUERY NAME=&quot;GetDetails&quot; 
>DATASOURCE=&quot;quickpoll&quot;&gt;</FONT>
><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>SELECT pol_ID, 
>pol_Question, pol_Category, pol_Status</FONT>
><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>FROM 
>pol_Poll</FONT>
><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>WHERE pol_ID = 
>#URL.PollID#</FONT>
><BR><FONT SIZE=2>&lt;/CFQUERY&gt;</FONT>
></P>
><BR>
>
><P><FONT SIZE=2>&lt;cfoutput query=&quot;getdetails&quot;&gt;</FONT>
><BR><FONT SIZE=2>&lt;p&gt;Status:</FONT>
><BR><FONT SIZE=2>&nbsp; &lt;select name=&quot;#pol_status#&quot; 
>size=&quot;1&quot;&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option 
>value=&quot;All&quot;&gt;All&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option 
>value=&quot;New&quot;&gt;New&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option 
>value=&quot;Active&quot;&gt;Active&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option 
>value=&quot;Archive&quot;&gt;Archive&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option 
>value=&quot;Hide&quot;&gt;Hide&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp; &lt;/select&gt;</FONT>
><BR><FONT SIZE=2>&nbsp; Category:</FONT>
><BR><FONT SIZE=2>&nbsp; &lt;select name=&quot;#pol_Category#&quot; 
>size=&quot;1&quot;&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option 
>value=&quot;All&quot;&gt;All&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option 
>value=&quot;sports&quot;&gt;sports&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option value=&quot;current 
>affairs&quot;&gt;current affairs&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; &lt;option 
>value=&quot;general&quot;&gt;General&lt;/option&gt;</FONT>
><BR><FONT SIZE=2>&nbsp; &lt;/select&gt;</FONT>
><BR><FONT SIZE=2>&lt;/cfoutput&gt;</FONT>
></P>
>
><P><FONT SIZE=2>&nbsp;&nbsp; hope this makes sense, i want the choice 
>selected to appear in the drop </FONT>
><BR><FONT SIZE=2>down, and the user can then make the required change if 
>necessary</FONT>
><BR><FONT SIZE=2>thanks in advance</FONT>
><BR><FONT 
>SIZE=2>________________________________________________________________________</FONT>
><BR><FONT SIZE=2>Get Your Private, Free E-mail from MSN Hotmail at <A 
>HREF="http://www.hotmail.com" 
>TARGET="_blank">http://www.hotmail.com</A></FONT>
></P>
>
><P><FONT 
>SIZE=2>------------------------------------------------------------------------------</FONT>
><BR><FONT SIZE=2>Archives: <A 
>HREF="http://www.mail-archive.com/[email protected]/" 
>TARGET="_blank">http://www.mail-archive.com/[email protected]/</A></FONT>
><BR><FONT SIZE=2>To Unsubscribe visit <A 
>HREF="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk" 
>TARGET="_blank">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk</A>
> 
>or send a message to [EMAIL PROTECTED] with 'unsubscribe' 
>in the body.</FONT></P>
>
></BODY>
></HTML>
>------------------------------------------------------------------------------
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or 
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in 
>the body.

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to