Hi Greg, Yes, sorry if I missed the 'if not reloading the page is a requirement"... I can reload the page as many times I need since the queries are extensive but fast, so the server, and this runs on an intranet. I'm working right now to get this to work with some ideas provided from this list, but if you've coded this before would be more thank appreciated. Thanks a lot man!
Francisco -----Original Message----- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: August 30, 2004 4:24 PM To: Francisco Puente XFMP (QA/EMC) Cc: php-general Subject: RE: [PHP] PHP- Dependant dropdown based on Mysql queries On Mon, 2004-08-30 at 14:28, Francisco Puente XFMP (QA/EMC) wrote: > Hi Brent, > I believe this is the way to go, but since I'm not a javascript guy I would > like to get some php help for doing this. > I you know some javascript can you please post some code for this task? > Someone else proposed to query ALL the information from the database to > populate the javascript code to be used but I disregard this since the data from the > database is pretty big and a lot of user accessing at the sime will put the load on > the roof. I'm sure there is an easier way to go.. > Thanks a lot! That someone, being me, also justified the statement with "if not reloading the page is a requirement". If you can reload the page after each option is selected then you don't even have to use javascript. When I coded one of these a couple years back it was in the spec that the page would not reload. In addition, a single select costs less than multiple selects with where clauses. Good luck.. however you decide to code it. -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php