I need help.
I have a select box with items and I want, if the user select a car name and click on "search" I need to have the name of the car he selected on a "echo".
I tried couple of things but it displays nothing (blank page). below is my code.
Thanks in advance !
<select name="category" >
<option value="nocategory">No Category</option>
<option value="toyota">Toyota</option>
<option value="nissan">Nissan</option>
<option value="mazda">Mazda</option>
<option value="volvo">Volvo</option>
</select>
<input name="submit" value="Search" type="submit">
</form>
<?php
if (isset($_POST['submit'])){
$category = $_POST['category'];
?>