They are just like you would think they would be
<cfset total = (form.price + form.tax)>

you could also just do this on the fly in javascript before the form is
submitted.

And btw you should send your emails as text only because some people on this
list love to flame people that do not.
----- Original Message -----
From: "wai-leng" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 24, 2000 10:47 PM
Subject: help with computing values using form variable


> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_000D_01BFF64F.B5310080
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hi all,
>
> I am writing a small application that will compute a series of fees =
> based on the cost entered in a form.These were originally developed in =
> excel.
>
> I am trying to re-write the excel formula in the cf action page using =
> the cost variable. Could someone point me to what is the form for =
> mathematical expressions in CF?
>
> Thanks in advance
>
> wai-leng
>
> ------=_NextPart_000_000D_01BFF64F.B5310080
> Content-Type: text/html;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content=3D"text/html; charset=3Diso-8859-1" =
> http-equiv=3DContent-Type>
> <META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>I am writing a small application that =
> will compute=20
> a series of fees based on the cost entered in a form.These were =
> originally=20
> developed in excel.</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>I am trying to re-write the excel =
> formula in the cf=20
> action page using the cost variable. Could someone point me to what is =
> the form=20
> for mathematical expressions in CF?</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV>
> <DIV>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>wai-leng</FONT></DIV></BODY></HTML>
>
> ------=_NextPart_000_000D_01BFF64F.B5310080--
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to