Click to See Complete Forum and Search --> : Help needed with selection box


gogelpot
08-10-2006, 12:30 AM
Hi I wonder if anybody could pls. help me.

I have a selection box "A" with 15 selections. I need to use the selection I make in this selection box "A" to select data that is displayed in selection box "B" from my database.

How do I set the selection maid in box "A" = to a veriable $league (PHP).
Meaning where or in what is the selection in box "A" stored.

Do I make sence?

Pls. Help

jalarie
08-10-2006, 09:01 AM
As I understand it, PHP runs on the server before the web page is displayed for the user. At the moment the user picks an item from your select box, the server is currently out of the picture and you would need a client-side way to do something.

You can pick up the selection in Javascript by using the selectedIndex item.