Shilohcity
Technical User
Hello
I am trying to wrap my head around this problem. I have a page with various items quantities and prices on it populated from a database. They are all individually named by using a looping identifier and are passed to a page where the user can confirm their selections and see a total price. I have the page displaying the selection fine along with the prices but how do I get a totalprice?
I have tried something like:
records = Request(records)'total records on previous page
id = 0
Do while records > id
If id = 0 Then
price0 = Request("itemprice"
id = id + 1
ElseIf id = 1 Then
price1 = Request("itemprice"
id = id + 1
Loop
Response.Write "totalprice = (price0 + price1 + etc..)"
Now this is a far from perfect way of doing things so does anybody have any suggestions of ways to do this?
Cheers
Justin
I am trying to wrap my head around this problem. I have a page with various items quantities and prices on it populated from a database. They are all individually named by using a looping identifier and are passed to a page where the user can confirm their selections and see a total price. I have the page displaying the selection fine along with the prices but how do I get a totalprice?
I have tried something like:
records = Request(records)'total records on previous page
id = 0
Do while records > id
If id = 0 Then
price0 = Request("itemprice"
id = id + 1
ElseIf id = 1 Then
price1 = Request("itemprice"
id = id + 1
Loop
Response.Write "totalprice = (price0 + price1 + etc..)"
Now this is a far from perfect way of doing things so does anybody have any suggestions of ways to do this?
Cheers
Justin