Show selected value in a drop down menu
-
I have a multisite setup and I am adding some additional information fields in the profile edit screen in my theme’s dashboard. I am primarily using text fields however I have a drop down selection menu for the author’s country
<select name="country" class="mid2" id="country" value="<?php echo $userdata->country ?>" style="width:150px;">
My problem is that if a user selects “Togo” for example it registers the change (I know this because it echoes it in the author’s bio page) but the default value in the drop down menu (In this case the United States) always stays the same.
Any ideas on how I can have it display whichever country the author has selected?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Show selected value in a drop down menu’ is closed to new replies.