RE: [PHP] Menu Selections Dynamic from a Database
| From: | NCI/IMS) | Date: | Tue, 25 Jun 2002 19:57:11 +0000 |
| Subject: | RE: [PHP] Menu Selections Dynamic from a Database | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-103832@lists.php.net to get a copy of this message | ||
Unless you want to submit or use frames, you need to use JavaScript to
populate the second dropdown based upon the value of the first one. PHP
doesn't let you do this without the submit or frames because it's
server-side, whereas JS is client-side.
If you need any code let me know.
Good luck!
-Natalie
-----Original Message-----
From: Phillip S. Baker [mailto:phillip@freewolf.net]
Sent: Tuesday, June 25, 2002 3:55 PM
To: php-general@lists.php.net
Subject: [PHP] Menu Selections Dynamic from a Database
Greetings All,
Here is the problem I am trying to solve, I know it can be done but I am
not clear on how to do it.
I am generating an appointment application.
And I want to dynamically populate pulldown menus from values in a DB.
So if a person picks a day for an appointment in a pulldown menu, then next
pulldown menu on the page is dynamically populated with the available times
for that specific day.
The values for both menus will be pulled from information in a MySQL db.
Can anyone help me out with this?
Phillip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php