Block sending form if not selected option
Posted: 27 May 2016, 19:15
How can i block this form sending if user not select option?
Code: Select all
<form method="GET" action="search.php">
<select name="Type">
<option value="">---</option>
<option value="requiment">Requiment</option>
<option value="Available">Available</option> <br / >
</select>
<select name="Type2">
<option value="">---</option>
<option value="sell">Sell</option>
<option value="rent">Rent</option> <br / >
</select>
Search <input type="text" name="nume" id="nume" class="form-control" value="<?php if(isset($nume)) echo $nume; ?>" /><br />