Page 1 of 1

HTML Form Options

Posted: Tue Dec 20, 2011 4:33 am
by MikeD
Probably something simple, but in my game I've been asked to keep options selected.

Such as when choosing a dungeon and level Ex Magic Level 7. It saves those options the default.

I know there is a way to do it, i've seen it on various sites, however I can't find anything when I google it. Any help would be appreciated.

Re: HTML Form Options

Posted: Sat Dec 31, 2011 5:41 pm
by MikeD
bump

Re: HTML Form Options

Posted: Sat Dec 31, 2011 5:44 pm
by Chris
Could you give us more detail by what you mean? A link, visual representation or maybe some sort of code.

Re: HTML Form Options

Posted: Sat Dec 31, 2011 6:57 pm
by hallsofvallhalla
$item = $_POST['item'];
<form option....
<option selected='$item'.....

Re: HTML Form Options

Posted: Sat Dec 31, 2011 9:13 pm
by MikeD
hallsofvallhalla wrote:$item = $_POST['item'];
<form option....
<option selected='$item'.....
YES!!!! Thank you, can't believe it's that simple. This has been bugging me for awhile haha.