I have the following drop down list. How can I show the correct option based on the url e.g. http://www.domain.com/?car=Algema&city=Paris
What I did is add a value="echo $_REQUEST['car'];" because I used the same on my textboxes but it is not working.
I am using PHP.
<select name="car" value="echo $_REQUEST['car'];" id="car" class="select">
<option value="Algema">Algema</option>
<option value="Barkas">Barkas</option>
<option value="Cadillac">Cadillac</option>
</select>
1 Answer