Hi,
I'm developing a shopping cart system and it's all working fine except one bit I'm stuck on...
When you've added something to your cart it displays the details and quantity. The quantity is displayed in a textbox so you can change it and hit the update button so the form posts the new quantity to cart.
I've seen other shopping carts out there where they have one update button and you change the quatities in the fields and hit the button at the bottom - this would be good for me as I'm a bit short on space for a button next to each item.
But how do I identify the fields? I took a look at some HTML used by a cart that uses this method and noticed the form looks a bit like this:
<form ...>
<input type="hidden" name="itemID" value="212">
<input type="text" name="quantity" value="1">
<input type="hidden" name="itemID" value="128">
<input type="text" name="quantity" value="2">
...
</form>
Any ideas on how I could get my ASP page to split these up so I can read the first pair, then the second? Any help would be great!! Thanks!
I'm developing a shopping cart system and it's all working fine except one bit I'm stuck on...
When you've added something to your cart it displays the details and quantity. The quantity is displayed in a textbox so you can change it and hit the update button so the form posts the new quantity to cart.
I've seen other shopping carts out there where they have one update button and you change the quatities in the fields and hit the button at the bottom - this would be good for me as I'm a bit short on space for a button next to each item.
But how do I identify the fields? I took a look at some HTML used by a cart that uses this method and noticed the form looks a bit like this:
<form ...>
<input type="hidden" name="itemID" value="212">
<input type="text" name="quantity" value="1">
<input type="hidden" name="itemID" value="128">
<input type="text" name="quantity" value="2">
...
</form>
Any ideas on how I could get my ASP page to split these up so I can read the first pair, then the second? Any help would be great!! Thanks!