my product form adds all items to the cart when only ones selected
Ive worked with forms a bit but not one thats selecting items to buy to go to a cart. Originally, it was a bunch of individual codes for the different items, but I wanted them in a select box, so i frankensteined the code, but it doesnt work exactly right.
All of the hidden fields were originally right with the options, but the drop down box didnt work at all, so I moved them all to the top and now it looks right but doesnt select right.
I think it may be a problem with not having a quantity specfied, but im not sure how I should go about getting it so the quantity is 1 on the selection and 0 on the nonselected.
heres my temp link
http://myareasbest.com/Copy%20of%20confirm.html
Thanks
Code:
<form method="post" action="https://www.asecurecart.net/server/cart.aspx/Myareasbest">
<input type="hidden" name="ID" value="option1">
<input type="hidden" name="Describe" value="One Year">
<input type="hidden" name="Price" value="300.00">
<input type="hidden" name="Multi" value="N">
<input type="hidden" name="ID" value="option2">
<input type="hidden" name="Describe" value="Three Years">
<input type="hidden" name="Price" value="750.00">
<input type="hidden" name="Multi" value="N">
<input type="hidden" name="ID" value="option3">
<input type="hidden" name="Describe" value="Five Years">
<input type="hidden" name="Price" value="1,200.00">
<input type="hidden" name="Multi" value="N">
<input type="hidden" name="ID" value="option4">
<input type="hidden" name="Describe" value="Bronze Corporate Membership">
<input type="hidden" name="Price" value="1,000.00">
<input type="hidden" name="Multi" value="N">
<input type="hidden" name="ID" value="option5">
<input type="hidden" name="Describe" value="Silver Corporate Membership">
<input type="hidden" name="Price" value="1,200.00">
<input type="hidden" name="Multi" value="N">
<input type="hidden" name="ID" value="option6">
<input type="hidden" name="Describe" value="Gold Corporate Membership">
<input type="hidden" name="Price" value="2,000.00">
<input type="hidden" name="Multi" value="N">
<input type="hidden" name="ID" value="option7">
<input type="hidden" name="Describe" value="My Best Card">
<input type="hidden" name="Price" value="25.00">
<input type="hidden" name="Multi" value="N">
<select name="select">
<option value="option1">
One Year $300.00
</option>
<option value="option2">
Three Years $750.00
</option>
<option value="option3">
Five Years $1,200.00
</option>
<option value="option4">
Bronze Corporate Membership $1,000.00
</option>
<option value="option5">
Silver Corporate Membership $1,200.00
</option>
<option value="option6">
Gold Corporate Membership $2,000.00
</option>
<option value="option7">
My Best Card $25.00
</option>
</select>
<br />
<input type="submit" value="Add to Cart">
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks