werosen
08-31-2004, 07:17 PM
Hi:
I'm trying to include a value from a text file for the txRate variable in the code below. I tried using the include function as shown, but the double quotes are of course killing it. I don't want to use a data base to get this value, I just want the info from a text file. Can anyone suggest a solution?
Thanks for your help.
<%
Dim sales, salesnoship, txRate, notaxrate, salesplustax, justtax, grandtotal, grandnotax, statename, statecode
sales = FormatNumber(sTotal,2) ' All items plus shipping and no tax
salesnoship = ((sTotal) - sShipping) ' All items without shipping nor tax
txRate = <!--#include file="salestaxrate.asp"--> ' ****tax
notaxrate = 0.00 ' No tax
salesplustax = (((salesnoship/100) * txRate) + salesnoship) ' This is sales plus tax
justtax = ((salesnoship/100) * txRate) ' This is the tax on all items in cart
grandtotal = ((salesplustax) + sShipping) ' This is sales plus tax plus shipping
grandnotax = ((salesnoship) + sShipping) ' This is sales plus shipping
statename = "cStateFullName" ' ****state1
statecode = "cStateAbbreviation"' ' ****state2 %>
I'm trying to include a value from a text file for the txRate variable in the code below. I tried using the include function as shown, but the double quotes are of course killing it. I don't want to use a data base to get this value, I just want the info from a text file. Can anyone suggest a solution?
Thanks for your help.
<%
Dim sales, salesnoship, txRate, notaxrate, salesplustax, justtax, grandtotal, grandnotax, statename, statecode
sales = FormatNumber(sTotal,2) ' All items plus shipping and no tax
salesnoship = ((sTotal) - sShipping) ' All items without shipping nor tax
txRate = <!--#include file="salestaxrate.asp"--> ' ****tax
notaxrate = 0.00 ' No tax
salesplustax = (((salesnoship/100) * txRate) + salesnoship) ' This is sales plus tax
justtax = ((salesnoship/100) * txRate) ' This is the tax on all items in cart
grandtotal = ((salesplustax) + sShipping) ' This is sales plus tax plus shipping
grandnotax = ((salesnoship) + sShipping) ' This is sales plus shipping
statename = "cStateFullName" ' ****state1
statecode = "cStateAbbreviation"' ' ****state2 %>