how can i remaining selected itme in ListBox in php?

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
dilruk83
Forum Newbie
Posts: 13
Joined: Thu Oct 30, 2008 6:44 am

how can i remaining selected itme in ListBox in php?

Post 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...
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

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

Post 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?
Griven
Forum Contributor
Posts: 165
Joined: Sat May 09, 2009 8:23 pm

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

Post 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?
dilruk83
Forum Newbie
Posts: 13
Joined: Thu Oct 30, 2008 6:44 am

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

Post 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..?
Post Reply