Hi
I am using the following code to give the user a choice of options in a drop down box:
<?php
$query="SELECT location,id FROM area";
$result = mysql_query ($query);
echo "<select name=location_id value=''>location</option>";
while($nt=mysql_fetch_array($result)){
echo "<option value=$nt[id]>$nt[location]</option>";
}
echo "</select>";
?>
It retrieves all of the options from a MySQl database.
How do I get it, so that the first option is blank, or says "Please Select"??
Thanks