Click to See Complete Forum and Search --> : Help (from a beginner)


chilsong
11-27-2005, 12:42 PM
I am trying to re-design a page for a friend's site that will allow the ordering on line of 1 or more of an item. There is only 1 item and I have a page which I want a customer to be able to input a number and when "calculate" is pressed, to go to a page which shows the total price (1x£5, 2x£5 etc) and then allows online ordering of that number of items. I have inherited the basic structure but it's not working, I have no skills outside of Frontpage and I can't write code. Any help to undertand the process I need to follow would be appreciated. Or can I get ready written code online?

Thanks in advance,

Bob Banham

Muzhu
11-27-2005, 03:54 PM
<form action="calculate.asp" method="post">
<input type="text" name="num">
<input type="text" name="price" value="price">
<input type="submit">
</form>

calculate.asp

<%
num = CInt(Request.Form("num"))
price= CInt(Request.Form("price"))
Response.Write num*price
%>