Page 1 of 1

how can i remaining selected itme in ListBox in php?

Posted: Fri Oct 09, 2009 2:01 am
by dilruk83
I have a ListMenu names MyListBox.

<select name="MyListMenu" id="MyListMenu">
<option>a</option>
<option>b</option>
<option>c</option>
</select>

<input type="submit" name="button" id="button" value="Submit" />

If i select Item 'b' from MyListMenu and click on button, I wanna remaining item 'b' on MyListMenu after click on the Button.

How can i do this..?

Thank you...

Re: how can i remaining selected itme in ListBox in php?

Posted: Fri Oct 09, 2009 3:18 am
by requinix
dilruk83 wrote:If i select Item 'b' from MyListMenu and click on button, I wanna remaining item 'b' on MyListMenu after click on the Button.
What?

Re: how can i remaining selected itme in ListBox in php?

Posted: Fri Oct 09, 2009 3:23 am
by Griven
tasairis wrote:
dilruk83 wrote:If i select Item 'b' from MyListMenu and click on button, I wanna remaining item 'b' on MyListMenu after click on the Button.
What?
Huh?

Re: how can i remaining selected itme in ListBox in php?

Posted: Fri Oct 09, 2009 3:40 am
by dilruk83
If i select Item 'b' from MyListMenu and click on button, I wanna remaining item 'b' on MyListMenu after click on the Button.

mean


i have one listmenu and one button. asume that listmenu have three items named a,b,c

if i select a item 'b' from listmenu and click on the button.thereafter listmenu shuld be selected item 'b' on listmenu.

how can i do that in php..?