Coldfusion code problem (error)

by "David Pippen" <pipwax1(at)bellsouth.net>

 Date:  Sat, 18 Dec 2004 17:31:36 -0500
 To:  "List Languages" <hwg-languages(at)hwg.org>
  todo: View Thread, Original
I am learning coldfusion and I have done everything from the book, checked
and double checked, but this code will not work I get the error (elememt
TaxRate undefined) Can anyone help thanks.

Here is my code
<!--- Add Code to Initialize Variables --->
<cfset Price = 1300.00>
<cfset TaxRate = URL.TaxRate>
<cfset ShippingRate = 0.09>
<!--- Add Code to Perform Computations --->
<cfset Tax = Price * TaxRate>
<cfset Total = Price + Tax>
<cfset TotalShip = Total * (1 + ShippingRate)>
<!--- Add Code to Output Values at Appropriate Places by Using CFOUTPUT
tags --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Kitchen Sink Model 2123</title>
</head>

<body bgcolor="white">
<table align="center" border="1">
<tr><td align="center" colspan="2">Kitchen Sink Model 2123</td></tr>
<tr><td align="right">Price:</td><td
align="right"><cfoutput>#DollarFormat(Price)#</cfoutput></td></tr>
<tr><td align="right">Tax <cfoutput>#TaxRate#</cfoutput>:</td><td
align="right"><cfoutput>#DollarFormat(Tax)#</cfoutput></td></tr>
<tr><td align="right">Total:</td><td
align="right"><cfoutput>#DollarFormat(Total)#</cfoutput></td></tr>
<tr><td align="right">Total Plus Shipping:</td><td
align="right"><cfoutput>#DollarFormat(TotalShip)#</cfoutput></td></tr>
</table>


</body>
</html>

David D Pippen
www.ruff-ryders.org/photo_index.htm
www.pipwax.com
================================
All Outgoing mail has been
Scanned By Norton Virus V10.0.1.3

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA