i have an "product customization form", made with javascript wich sends the user selected values through email.
<select name="material" id="material" onchange="selection_material()">
<option >Select...</option>
<option value="1">Paper 115g</option>
<option value="2">Paper 135g</option>
<option value="3">Paper 150g</option>
<option value="4">Paper 170g</option>
<option value="5">Cardboard 200g</option>
<option value="6">Cardboard 250g</option>
<option value="7">Cardboard 120g striat</option>
</select>
function selection_material() {
var x=document.selection.material.selectedIndex;
if(x==1) {
document.selection.finisare[0].disabled=false;
document.selection.finisare[1].disabled=false;
document.selection.finisare[2].disabled=false;
document.selection.finisare_speciala1.disabled=false;
}
else if (x==2) {
document.selection.finisare[0].disabled=true;
document.selection.finisare[1].disabled=true;
document.selection.finisare[2].disabled=true;
document.selection.finisare_speciala1.disabled=true;
document.selection.finisare_speciala2.disabled=true;
}
and so on.
This form works just fine (for me), but if i select, for example <option value="1">Paper 115g</option>, what i get by email is "1". i want to receive "Paper 115g".
This is the script that sends those values by email:
<?php
$material= $_REQUEST['material'] ;
...
?>
How can i send the real value?