Hello,

i have a problem with drop down menu, it doens't gives the value trough.

HTML Code:
<label>Boogschieten of Valkerij</label>
           <select id = "keuze" name="keuze">
           <option value = "">Keuze</option>
          <option value = "Boogschieten">Boogschieten</option>
          <option value = "Valkerij">Valkerij</option>
         </select>
javascript :
Code:
	
var keuze = $("input#keuze").val();
if ( document.getElementById('keuze').selectedIndex == 0 ) {
$("#error").fadeIn().text("Gelieve een keuze  te maken");
$("input#web").focus();
return false;
}
PHP Code:
<?php
//vars
$subject $_POST['subject'];
$to explode(','$_POST['to'] );

$from $_POST['email'];

//data

$msg .= "KEUZE: " .$_POST['keuze']    ."<br>\n";

//Headers
$headers  "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=UTF-8\r\n";
$headers .= "From: <".$from">" ;


//send for each mail
foreach($to as $mail){
   
mail($mail$subject$msg$headers);
}

?>

what I get for KEUZE in the email is : [object HTMLSelectElement]