I have a static dropdown list in a form as below:
<select class="form-control" id="brand" name="brand">
<option value="">Please select a Brand</option>
<option value="Apple">Apple</option>
<option value="Samsung">Samsung</option>
<option value="Sony">Sony</option>
</select>
When User choose a brand, let say: Apple and Submit the form. The value "Apple" will be saved in mysql database. I have option for user to edit their form after submitting it.
When user edits the form, I know how to retrieve data from mysql and echo it out but how to make this option which contains value "Apple" as selected so that this value "Apple" will be shown up as default in stead of "Please select a brand"?
Thanks,