jporven
03-19-2003, 06:08 PM
I have a shopping cart script called with the following code:
If Not IsNull(rs("RETAIL_COST")) Then
Response.Write "<img src=""img/bar_red.gif"" width=4 height=4 hspace=4 align=absmiddle><font"&FC&" size=2><B>Retail Price:</B> " & FormatCurrency(rs("RETAIL_COST")) & "<BR>"
End If
I believe the RETAIL_COST in the code above to be a variable pulled from the database.
I'd like to know how I can place this variable into my HTML and have it "processed" so when the html is displayed it shows the retail cost. I think this is doable asthe cart's documentation says that there are "database variables" that can be used such as <%=pg_header%> ; but it doesn't discuss how to use other variables found within the code or the format to use the example variables in HTML. In other words say I used the <%=pg_header%>, do I need any other tags/code to tell the html page to somehow process this tag? If I want to use other variable I see in the code, such as the RETAIL_COST, woud I use the same format (eg <%=RETAIL_COST%>.
Sorry to trouble the group with this, but I have been back and forth with the developers for weeks andthey are not very helpfull, my only other resort would be shelling out another $500 for a different script.
Thanks in advance for all help.
If Not IsNull(rs("RETAIL_COST")) Then
Response.Write "<img src=""img/bar_red.gif"" width=4 height=4 hspace=4 align=absmiddle><font"&FC&" size=2><B>Retail Price:</B> " & FormatCurrency(rs("RETAIL_COST")) & "<BR>"
End If
I believe the RETAIL_COST in the code above to be a variable pulled from the database.
I'd like to know how I can place this variable into my HTML and have it "processed" so when the html is displayed it shows the retail cost. I think this is doable asthe cart's documentation says that there are "database variables" that can be used such as <%=pg_header%> ; but it doesn't discuss how to use other variables found within the code or the format to use the example variables in HTML. In other words say I used the <%=pg_header%>, do I need any other tags/code to tell the html page to somehow process this tag? If I want to use other variable I see in the code, such as the RETAIL_COST, woud I use the same format (eg <%=RETAIL_COST%>.
Sorry to trouble the group with this, but I have been back and forth with the developers for weeks andthey are not very helpfull, my only other resort would be shelling out another $500 for a different script.
Thanks in advance for all help.