Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How can I fix this HTML code?
I want to group these under the same name so the customer can only select one option, but when I give them the same group name the price is the price for option 1 even when adding button 3 to the cart. If I don't group them with the same group name then it works fine. Here is the code:
<form action="http://ww12.aitsafe.com/cf/addmulti.cfm%22%3E
<input type="hidden" name="return" value="www.malsforms.com/multiple-radio-buttons.html">
<input type="hidden" name="userid" value="userid">
CUSTOMIZE YOUR PC<br>
<input type="radio" name="product1" value="2.5GHZ">
<input type="hidden" name="qty1" value="1">
<input type="hidden" name="price1" value="0.0">2.5GHZ (INCLUDED)<br>
<input type="radio" name="product2" value="3.0GHZ">
<input type="hidden" name="qty2" value="1">
<input type="hidden" name="price2" value="50.00">3.0GHZ (ADD + $50.00)<br>
<input type="radio" name="product3" value="3.6GHZ">
<input type="hidden" name="qty3" value="1">
<input type="hidden" name="price3" value="90.00">3.6GHZ (ADD + $90.00)<br>
<input type="submit" value="Buy">
</form>
1 Answer
- 9 years agoFavorite Answer
1) Use same name for radio button.
2) Change the value of the hidden field using javascript. Or simply just store the price in the value of radio button. Something like this:
<input type="radio" name="product" value="0.0">
<input type="hidden" name="qty1" value="1">
2.5GHZ (INCLUDED)<br>
<input type="radio" name="product2" value="50.00">
<input type="hidden" name="qty2" value="1">
3.0GHZ (ADD + $50.00)<br>
<input type="radio" name="product3" value="90.00">
<input type="hidden" name="qty3" value="1">
3.6GHZ (ADD + $90.00)<br>