| Cost | $40.00 |
| Shipping | $2.00 |
| Tax | $3.00 |
| Total | $45.00 |
SOURCE CODE:
<html><head><title>Shopping Cart Total</title>
<script language = "vbscript" runat = "server">
const cName = "Indian River Garden Store"
const cEmail = "info@IRGS.com"
const shipFee = 2.00
</script>
</head>
<body bgcolor = "#CCFFCC" text = "#008000">
<div align = "center"><h1><% = cName %><br></h1>
<h2><% = cEmail %></h2>
<h3>Your Shopping Cart</h3>
You purchased your products on <br><br>
<% response.write WeekdayName(Weekday(Date)) & ", " & _
MonthName(Month(Date)) & " " & _
Day(Date) & ", " & _
Year(Now())
%>
<br><br>
<%
Dim Cost, Tax, Total, State
Cost = 40.00
State = "IL"
If State = "IL" then
Tax = 3.00
else
Tax = 2.00
end if
Total = Cost + Tax + shipFee
%>
<% if Total <> 0 then %>
<table align = "center" width = "150" >
<tr>
<td>Cost</td>
<td align="right"><% = formatCurrency(Cost) %></td>
</tr>
<tr>
<td>Shipping</td>
<td align="right"><% = formatCurrency(shipFee) %></td>
</tr>
<tr>
<td>Tax</td>
<td align="right"><u><% = formatCurrency(Tax) %></u></td>
</tr>
<tr>
<td>Total</td>
<td align="right"><% = "<B>" & formatCurrency(Total) & "</B>" %></td>
</tr>
</table>
<% else %>
You have nothing in your shopping cart!
<% end if %>
</div>
</body></html>