Page 1 of 1

How can i get the data from list box?

Posted: Wed Jul 02, 2008 4:17 am
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?

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

Posted: Wed Jul 02, 2008 11:44 am
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.

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

Posted: Wed Jul 02, 2008 9:08 pm
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

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

Posted: Wed Jul 02, 2008 10:28 pm
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.