RE: [PHP] Menu Selections Dynamic from a Database

From: Date: Tue, 25 Jun 2002 20:01:52 +0000
Subject: RE: [PHP] Menu Selections Dynamic from a Database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103834@lists.php.net to get a copy of this message
At 12:57 PM 6/25/2002 Tuesday, Leotta, Natalie (NCI/IMS) wrote:
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
Yes I knew it was Javascript code, but I also thought PHP was needed to get the values from the DB. Either case I do need help with what the code might look like. Phillip
-----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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#103834) next »