I have an HTML form with multiple drop down boxes that the user selects and it then posts to a PHP page where they are used as $_post variables to query the database and display results. The problem is, I don't want a default value if nothing is selected passed to the PHP form.
<select name="City">
<option value="">Cities</option>
<option value="New York">New York</option>
<option value="Toronto">Houston</option>
</select>
<select name="Country">
<option value="" >Countries</option>
<option value="United States">Oil & Gas</option>
<option value="Canada">Retail</option>
</select>
For example, if they don't select a city I just want to run only the Countries dropdown box, but apparently it will use the blank value from the City option which messes up the query. I need to either diable the first option or maybe pass some variable that is like set to search ALL or something if that makes sense.