I want to pass the name of the options by POST to another page. I used this but did not recognize the variable.
echo "<form method=POST action=_search.php>";
echo "<select name=selectoption>";
echo "<option value=nom>nome</option>";
echo "<option value=prenom>ultimo</option>";
echo "</select>";
echo "<input type=submit name=btnsearch value=search >";
echo "</form>";
And on the other page to receive the value,
$var = $_POST['selectoption'];
echo $var;