Ok , in my form html i have options like this
<select name="ethnicity" class="textbox" id="ethnicity">
<option>Caucasian</option>
<option>Asian</option>
<option>Latino</option>
<option>African American</option>
<option>Pacific Islander</option>
<option>Indian</option>
<option>Middle Eastern</option>
<option>Mixed</option>
<option>Other / Not Specified</option>
</select>
Now .. if i query the database , and find out the my user is asian ... How can i make the form select asian , and not caucasian ... or if they where latino , how could i make it select latino , im using smarty so my output for their ethnicity is like {$ethnicity}.
Allow me to clarifiy what im trying to do .....
I have a edit account page , where users can edit their account info.
If they choose " Latino " , and update their profile , MYSQL will record their ethnicity as Latino ... Now .. Latino is not the first choice in that form list .. Caucasian is .. But i need it to be set to latino , so that the next time they visit the edit account page , they see their correct ethnicity ... ive done this , but it's dplaying twice ...
<select name="ethnicity" class="textbox" id="ethnicity">
<option selected>{$ethnicity}</option> <------------------------
<option>Caucasian</option>
<option>Asian</option>
<option>Latino</option>
<option>African American</option>
<option>Pacific Islander</option>
<option>Indian</option>
<option>Middle Eastern</option>
<option>Mixed</option>
<option>Other / Not Specified</option>
</select>
Thats the only way i can get it to display their proper ethnicity as the first choice , but then their ethnicity appears twice in the list .. 1 time for the choice they selected , another time b/c its an option in the list ...
Their has gotta be a way to make it display their ethinicity as the first choice in the list , and only display it one time.
I hope i didnt loose people ... i dont know how else to explain it.