Hi, All:

 

This might be a simple issue but my knowledge just runs out. I have 3
<cfinput type='"radio"....> with 3 values. When the user click one of
them, a <cfselect> will be populated based on the value of that radio
button. So if the value is A, I populate it with query A, etc. Here is
the simplified code

 

--------------------------------------------------------

<cfquery name="A" datasource="mydsn">

Select MyField from mytable where myID = 'A'

</cfquery>

 

<cfquery name="B" datasource="mydsn">

Select MyField from mytable where myID = 'B'

</cfquery>

 

<cfquery name="C" datasource="mydsn">

Select Myfiled from mytable where myID= 'C'

</cfquery>

 

<cfform...>

<cfinput name="camp" type="radio" value="A">

<cfinput name="camp" type="radio" value="B">

<cfinput name="camp" type="radio" value="C">

<cfselect name="dept" query="" value="MyField">

</cfselect>

</cfform>

--------------------------------------------

 

What I need is to pass the value "A", "B", or "C" from one of the
<cfinput> to <cfselect> so that the "query" inside <cfselect> would be
query="A", or query="B", or query="C". I know I have to do a onClick
inside <cfinput> but how do I pass the value? Is there any CF tag that
does this?

 

Any pointer is appreciated.

 

 

Nathan Chen

 

 

 

 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318898
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to