Title: Message
I'm not sure if i 100% understood what you're asking... but....
 
A radio button on a form passes the value as a form variable.
 
so in this example form.prod would be equal to "all" or "active" or "inactive"
 
save this code as form_test.cfm
 
Gav
 
 
<form action="" method="post">
 
<input type="radio" name="prod" value="all">all
<input type="radio" name="prod" value="active">active
<input type="radio" name="prod" value="inactive">inactive
 
<input type="submit">
 

</form>
 
<cfdump var=#form#>
----- Original Message -----
Sent: Thursday, September 11, 2003 1:31 PM
Subject: [cfaussie] confused/frustrated

hi guys,
i have a query showing products in a table in an administration section of a site
 
i would like to give the client the option of listing all products/active products/inactive products through a radio button set
 
im having trouble getting this to work -  i am obviously going about this the wrong way
 
<form action="" method="get" name="selection">
 <input name="prod" type="radio" value="all" <cfif form.selection.prod IS checked><cfset show = "all"></cfif>> view all products |
 <input name="prod" type="radio" value="active" <cfif form.selection.prod IS checked><cfset show = "yes"></cfif>> view active products | 
 <input name="prod" type="radio" value="inactive" <cfif form.selection.prod IS checked><cfset show = "no"></cfif>> view inactive products
 

Error resolving parameter FORM.SELECTION.PROD

 
how would i identfy this radio set?
and i am unsure whether the parameter "checked" is a valid one
 
- can someone steer me in the right direction?
 
Steve Soars
Interactive Redlands
 
 
Shop 2 Cleveland Town Square
Cnr Queen & Bloomfield Sts
Cleveland Qld Australia 4163
p: +61 7 3821-5800
f: +61 7 3821-5811
 
Instant Messaging
icq: 298661060
 
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to