RE: radio buttons and passing variable question

2000-12-13 Thread Cornillon, Matthieu

 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?

The # signs tell the CF server to interpret what's inside them as a variable
name or function, and not just as a text string.  The form specifies the
category of variable.  Some other category names are:

variables (local page variables)
URL (variables embedded in URL query string)
session (session variables stored on server)


 #dollarformat(tax)#?

This tells the server to interpret dollarformat(tax) as a function, not as a
string.  The argument to the function, "tax", is probably a local variable
on the page.  You can specify local page variables by typing "variables."
first (e.g., variables.tax), but in the case of local page variables, you
don't need the prefix.  In any case, this function should return the value
of the local page variable "tax" in dollar format, that is, to two decimal
places, with a thousands separator, and a leading dollar sign.

Matthieu

~~
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



RE: radio buttons and passing variable question

2000-12-12 Thread Allan Pichler

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 alli'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:


TdBDo You Prefer A Light Or Dark Color:/B
 BLight/bINPUT TYPE="radio" VALUE="yes" NAME="color"
 CHECKED="true"BDark/bINPUT
 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