This is a discussion on getting value of item in list box. within the PHP General forums, part of the PHP Programming Forums category; Hello, I have a PHP page which pulls a bunch of data from a mySQL DB. I have 2 list ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
I have a PHP page which pulls a bunch of data from a mySQL DB. I have 2 list boxes in a form. One is populated automatically by my PHP code. But the second will be populated based on what is selected in the first. I don't know how to get out the value of the first listbox using JS. Can anyone help? Thx Tim Winters Creative Development Manager Sampling Technologies Incorporated 1600 Bedford Highway, Suite 212 Bedford, Nova Scotia B4A 1E8 www.samplingtechnologies.com webmaster@samplingtechnologies.com csnm@samplingtechnologies.com Office: 902 450 5500 Cell: 902 430 8498 Fax:: 902 484 7115 |
|
|||
|
From: "Tim Winters" <csnm@samplingtechnologies.com>
> I have a PHP page which pulls a bunch of data from a mySQL DB. I have 2 > list boxes in a form. One is populated automatically by my PHP code. > But the second will be populated based on what is selected in the first. > > I don't know how to get out the value of the first listbox using JS. This is a PHP list. If you have a JavaScript question, please find a JavaScript list or forum. Thanks. ---John Holmes... |
|
|||
|
check out http://javascript.internet.com/forms...drop-down.html
"Tim Winters" <csnm@samplingtechnologies.com> wrote in message news:000f01c36594$87eb0f00$1401a8c0@TIMS... > Hello, > > I have a PHP page which pulls a bunch of data from a mySQL DB. I have 2 > list boxes in a form. One is populated automatically by my PHP code. > But the second will be populated based on what is selected in the first. > > I don't know how to get out the value of the first listbox using JS. > > Can anyone help? > > Thx > > Tim Winters > Creative Development Manager > Sampling Technologies Incorporated > > 1600 Bedford Highway, Suite 212 > Bedford, Nova Scotia > B4A 1E8 > www.samplingtechnologies.com > webmaster@samplingtechnologies.com > csnm@samplingtechnologies.com > Office: 902 450 5500 > Cell: 902 430 8498 > Fax:: 902 484 7115 > > |