I have a form:
<form method="POST" action=".">
<p>the select<select size="1" name="ccha" >
<option selected>aa</option>
<option>bb</option>
<option>cc</option>
<option>dd</option>
</select></p>
</form>
Now I want to get $ccha from my database,and if $ccha is "bb" not "aa",i want the form is
<form method="POST" action=".">
<p>the select<select size="1" name="ccha" >
<option >aa</option>
<option selected>bb</option>
<option>cc</option>
<option>dd</option>
</select></p>
</form>
of course ,if $ccha is "cc" ,i want the form is : <option selected> cc </option>
how to do this by php