Jump to content

Archived

This topic is now archived and is closed to further replies.

Rien17

Setting the value of a Combo Box

Recommended Posts

Hello, I need help with setting the value of a combo box on a page. The page gets values from a database and i want to set the user type value to one of three possible values. the three values are Guest Coach and Admin.
Thanks

Share this post


Link to post
Share on other sites
to have one selected by default you need to add 'selected="selected" 'to the option tag. You would need an if statement to compare the value from your database and add that text of it is true.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.