You need to have the value for the radiobuttons set to light and dark
instead of yes!
Allan Pichler
Machine Dreams Inc.
-----Original Message-----
From: C Kong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 10:40 PM
To: CF-Talk
Subject: radio buttons and passing variable question
hi all....i'm trying to pass a variable selected by a user via a radio
button...basically if a customer wants a light or dark color for a
car.....here is the coding for my radio button:
<Td><B>Do You Prefer A Light Or Dark Color:</B>
<B>Light</b><INPUT TYPE="radio" VALUE="yes" NAME="color"
CHECKED="true"><B>Dark</b><INPUT
TYPE="radio" VALUE="yes" NAME="color">
</td>
here is some coding for CFMail page (different cfm file) where the variable
is sent:
Light or Dark Color : #form.color#
and here is the resulting e-mail i get when testing if my system works or
not.
Light or Dark Color: yes
my other variables pass except for the radio button variables. they all
come up "yes" as opposed to "light" or "dark" (i.e. Light or Dark Color:
dark) like i would like.
can anyone help?...what am i doing wrong?
a side question, can anyone tell me what #form.variable name# is
supposed to do?...i mean what does the # sign signify and what does "form"
tell the computer?
#dollarformat(tax)#?
thank you all in advanced.
colin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists