My form is working fine but in my results email I get the number of the array the user chose instead of the value (ex. Glove: 3 vs. Glove: Cherry). How can I change this?
This is the php I'm using for my form:
$unpwdgloves=array(
'Bubble Gum',
'Cherry',
'Green Apple',
'Vanilla Orange',
'Grape',
'Mint',
);
This is my form:
<select name="glove-color">
<option value="">-----------------</option>
<?php
foreach($unpwdgloves as $key => $value):
echo '<option value="'.$key.'">'.$value.'</option>';
endforeach;
?>
</select>