A select element needs to be an array, then the option merely have different values so
<select name="Mls">
<option name="$mlsblank">Please Select Miles</option>
<option name="$mls1">0-50000</option>
<option name="$mls2">50001-10000</option>
<option>100001+</option>
</select>
needs to be written as
<select name="Mls[]">
<option value="mlsblank">Please Select Miles</option>
<option value="mls1">0-50000</option>
<option value="mls2">50001-10000</option>
<option value ="mls3">100001+</option>
</select>
then to find the values
$test=$_POST['Mls'];
if ($test){
foreach ($test as $t){echo 'You selected ',$t,'<br />';}
}
To test use the below code. Also PHP can not detect an onchange even that is javascript which is client side a language like PHP wil ony see the shange when the form is submitted, then the server sees what was done. This code will work. It will echo out the selected value that was selected by the user. Just give it anyname you wish and add the .php extension to your chosen filename.
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<select name="Mls[]">
<option value="mlsblank">Please Select Miles</option>
<option value="mls1">0-50000</option>
<option value="mls2">50001-10000</option>
<option value ="mls3">100001+</option> </select>
<input type="submit" value="Send" />
</form>
<?php
$test=$_POST['Mls'];
if ($test){
foreach ($test as $t){echo 'You selected ',$t,'<br />';}
}
?>