Hello guys, from my sign up form i make my sex field which is dropdown, which options are SELECT YOUR SEX, MALE, FEMALE. In my edit profile page i also have the sex field as dropdown but i want it to always echo or show the value in the database. as in if the member has signup as a female whenever she visit her edit-profile page the dropdown should show FEMALE which is in the database of the member as her sex and not SELECT YOUR SEX. kindly help
regards
Page 1 of 1
i want my dropdown to always select the value from database as defualt.
#2
Posted 10 March 2010 - 04:59 PM
<select name="LangUse" id="LangUse">
<option value="<?php print $LangUse?>" selected><?php print $LangUse?></option>
<option value="Cart">Cart</option>
<option value="Basket">Basket</option>
<option value="Trolley">Trolley</option>
</select>Get the value from the data base then construct as above.
#3
Posted 10 March 2010 - 08:52 PM
TopShopper, on 10 March 2010 - 04:59 PM, said:
<select name="LangUse" id="LangUse">
<option value="<?php print $LangUse?>" selected><?php print $LangUse?></option>
<option value="Cart">Cart</option>
<option value="Basket">Basket</option>
<option value="Trolley">Trolley</option>
</select>Get the value from the data base then construct as above.
topshoper thanks for your help. i really appreciate
regards
- ← Else statment viewed before anything else...
- Server Side (PHP, Databases, ASP.NET, etc)
- Changing the language of a webpage. →
Share this topic:
Page 1 of 1
Help















