Selecting an option from dropdown on page load

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sheikhmdirfan
Forum Newbie
Posts: 22
Joined: Tue Jan 20, 2009 12:21 am

Selecting an option from dropdown on page load

Post by sheikhmdirfan »

I have a page which shows details of a user that can b edited.. these details are filled in the page when it loads. I have a dropdown list containing say name prefixes like Mr, Ms, Mrs, Dr, Prof, Lect, Principal...

When the page loads i want the already saved name prefix (in DB) to b selected in the drop down with other options also available.

How can i do that..

Any help is welcome...

Thanks in advance
angelic_devil
Forum Commoner
Posts: 74
Joined: Thu Apr 02, 2009 7:05 am

Re: Selecting an option from dropdown on page load

Post by angelic_devil »

use the select command
Post Reply