How can i get the data from list box?

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
bulsecoip
Forum Newbie
Posts: 6
Joined: Thu Jun 26, 2008 12:37 am

How can i get the data from list box?

Post by bulsecoip »

i have two list box, listbox1 and listbox2. Upon loading of the page, listbox1 has been inserted with data while listbox2 has none. Upon double clicking of the data in listbox1, it transfers the data to listbox2. Now my problem is how can i get the data in listbox2? Can someone help me?
User avatar
Frozenlight777
Forum Commoner
Posts: 75
Joined: Wed May 28, 2008 12:59 pm

Re: How can i get the data from list box?

Post by Frozenlight777 »

Unless you are using a database to upload the listbox1 contents, the easiest way is to use javascript


http://www.netevolution.co.uk/scripts.asp?ID=86

not exactly what you're looking for but you should be able to figure it out.
bulsecoip
Forum Newbie
Posts: 6
Joined: Thu Jun 26, 2008 12:37 am

Re: How can i get the data from list box?

Post by bulsecoip »

Hi Frozenlight777, thank you for replying.

Is there anyway i can get the data from the second listbox in PHP? or i have to use other language like javascript to get the data? please help me
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: How can i get the data from list box?

Post by califdon »

bulsecoip wrote:Hi Frozenlight777, thank you for replying.

Is there anyway i can get the data from the second listbox in PHP? or i have to use other language like javascript to get the data? please help me
I assume you know that PHP is a server script that never reaches the browser, so it can't respond to what a user does in the browser. Javascript is client side script that is sent to the browser so it can respond to user actions.
Post Reply