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.
HTML Form Options
Re: HTML Form Options
Could you give us more detail by what you mean? A link, visual representation or maybe some sort of code.
Fighting for peace is declaring war on war. If you want peace be peaceful.
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: HTML Form Options
$item = $_POST['item'];
<form option....
<option selected='$item'.....
<form option....
<option selected='$item'.....
Re: HTML Form Options
YES!!!! Thank you, can't believe it's that simple. This has been bugging me for awhile haha.hallsofvallhalla wrote:$item = $_POST['item'];
<form option....
<option selected='$item'.....