How can i get the data from list box?
Moderator: General Moderators
How can i get the data from list box?
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?
- Frozenlight777
- Forum Commoner
- Posts: 75
- Joined: Wed May 28, 2008 12:59 pm
Re: How can i get the data from list box?
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.
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?
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
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?
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.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