You access form variables by using:
form.<fieldname>, e.g. form.prod.
In your case, you would want to use (and this assumes the
form is submitting to itself, which is what I think you're trying to
do):
<input name="prod" type="radio" value="all" <cfif form.prod
EQ "all"><cfset show = "all"> checked</cfif>> view all
products |
<input name="prod" type="radio" value="active" <cfif form.prod EQ "active"><cfset show = "yes"> checked</cfif>> view active products |
<input name="prod" type="radio" value="inactive" <cfif form.prod EQ "inactive"><cfset show = "no"> checked</cfif>> view inactive products
<input name="prod" type="radio" value="active" <cfif form.prod EQ "active"><cfset show = "yes"> checked</cfif>> view active products |
<input name="prod" type="radio" value="inactive" <cfif form.prod EQ "inactive"><cfset show = "no"> checked</cfif>> view inactive products
It looks as though
you are getting confused between client-side _javascript_ and CFML.
Darryl
From: Steve Soars [mailto:[EMAIL PROTECTED]
Posted At: Thursday, 11 September 2003 1:31 PM
Posted To: CFAussie
Conversation: [cfaussie] confused/frustrated
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
<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
msn: [EMAIL PROTECTED]
icq: 298661060
yahoo: [EMAIL PROTECTED]
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/
