RE: [PHP] Generating Related Drop Down Boxes
| From: | Jay Blanchard | Date: | Wed, 11 Jun 2003 19:20:47 +0000 |
| Subject: | RE: [PHP] Generating Related Drop Down Boxes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151119@lists.php.net to get a copy of this message | ||
[snip]
I have searched the archives, and although I know this is probably there
can not find it. I'm probably just not searching for the right subject.
Here is what I am looking for.
I have a table with Location and Hotel, and another one with Hotel and
Accommodations. I need to generate the first drop down box with
locations. Then when you select a location it will place the
corresponding hotels in another drop down, when you select the hotel it
will do the accommodations.
What I am looking for is if anyone has a sample or any information how
to do the drop downs that update themselves. If I can get a sample for
one I'm sure I can figure the rest out.
[/snip]
To do this dynamically with reloading the page you will need JavaScript.
Since PHP is server-side you would have to make a round trip to the
server to use it for this action.
Jay