I need to have a form field that holds two values instead of one to get the following accomplished: Let's say I'm selling blue, red, and green widgets. I have a radio button that chooses which one you want to purchase. What I need to happen, is when the form posts to a PHP script, is to have a variable available for both the name of the product chosen, as well as the price of that product.
Kind of like: ( I know this won't work, but it illustrates my point)
<input type="radio" name="widgets" value1="Blue Widget" value2="$50">BLUE WIDGETS</input>
<input type="radio" name="widgets" value1="Green Widget" value2="$75">GREEN WIDGETS</input>
<input type="radio" name="widgets" value1="Red Widget" value2="$25">RED WIDGETS</input>
Any suggestions are greatly appreciated!