Given this code snippet, I know that if the user selects 25c the value 25 will be sent to the php script; however, I am having issues trying to figure out how to setup the data on the php script so that I could manipulate it.
<label><b>Quarters:</b></label>
<select name="quarters" >
<option value="25">25c</option>
<option value="50">50c</option>
<option value="75">75c</option>
<option value="100">$1.00</option>
</select>
Currently all I have is this on the php script:
// A money array.
$money = array("Nickels" => "$value", "Dimes" => "$value", "Quarters" =>"$value");
If the user clicks on the option for for Quarters and selects 50c the value will be 50 on the HTML side, but how do I get that 50 onto the php side, since this value is depended on what the user selects, in some cases the user can select 75c, and the value 75 is transferred to the php script.
Can't use a variable it only holds one value, so I am thinking multi-dimensional array to hold all the possible values that a user can select from 25c value 25 to $1.00 value 100.
User can only select one value at a time,not a combination of values.