On my form i am giving user access to modify his details, I am fetching details from db using application id and showing it in my form inputs with its value attribute, so user can see and modify his details if he wants to, but how can we set value in select fields that fetched from database.
here suppose variable is $country
fetched from db.
$country = 'India';
And the select fields is
<select name="usercountry" id="usercountry">
<option value="England">England</option>
<option value="South Africa">South Africa</option>
<option value="USA">USA</option>
<option value="India">India</option>
</select>
Here I want this select box to be set to $country
value automatically.