Bluehost.com Web Hosting $6.95

getting value of item in list box.

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-18-2003
Tim Winters
 
Posts: n/a
Default getting value of item in list box.

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


Reply With Quote
  #2 (permalink)  
Old 08-18-2003
Cpt John W. Holmes
 
Posts: n/a
Default Re: [PHP] getting value of item in list box.

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...

Reply With Quote
  #3 (permalink)  
Old 08-19-2003
Kk
 
Posts: n/a
Default Re: getting value of item in list box.

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
>
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:52 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0