View Single Post
Old 03-20-2009, 07:28 AM   #1 (permalink)
MrDude
Platinum Lifetime Member
 
MrDude's Avatar
 
Name: Paul Rogers
Last Online: 11-17-2009 11:15 PM
iTrader: (10)
Join Date: Jun 2005
Posts: 1,251
DNF$: 0
Location: UK
Country:

Send a message via AIM to MrDude Send a message via MSN to MrDude Send a message via Yahoo to MrDude Send a message via Skype™ to MrDude

PHP/MySQL setting selected option for Dropdown Menu

I always see it on forums and stuff, when you go to edit your profile, your date of birth or whatever you put in a dropdown menu is shown to you, exactly how you selected it.

I have a form where people enter their date of birth, location etc, and I want it so when they go to edit, they see their selections already selected in the dropdown list by adding selected='selected' to it, I really cant figure out how to do it, and my only workaround right now is to add a duplicate at the top of the dropdown list.
MrDude is offline   Reply With Quote
Sponsored Ads