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?

Disregard this post!

Please disregard this post!

Ok, try to change the option value to 115g, as follow:

<option value="Paper 115g">Paper 115g</option>

Ok, try to change the option value to 115g, as follow:

<option value="Paper 115g">Paper 115g</option>

thanks, that worked finally! :) , but now comes another one:

<INPUT TYPE="checkbox" NAME="finisari_speciale" value="ex1">
<INPUT TYPE="checkbox" NAME="finisari_speciale" value="ex2">
<INPUT TYPE="checkbox" NAME="finisari_speciale" value="ex3">

this is kind of a group, but no matter what i select (one, two, three, all) it doesn't send nothing :(

Try to incoporate or check your PHP post script, if all element(s) are properly defined.

I suggest that you repost another query for this topic in PHP forum. Im pretty sure that you'll get everything you need from there to solve the last issue.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.