[PHP] Drop down reload
Hello, Could you tell me if it possible to reload the current page when I select a value in a drop down ? On a page, I have 2 drop down, the content on the first one come from the database. The content of the second one too (from database) but depend of the first drop down value. An idea to do that ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Drop down reload
On Friday 16 August 2002 19:53, Christian Ista wrote: Hello, Could you tell me if it possible to reload the current page when I select a value in a drop down ? On a page, I have 2 drop down, the content on the first one come from the database. The content of the second one too (from database) but depend of the first drop down value. An idea to do that ? Use javascript. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* In Lexington, Kentucky, it's illegal to carry an ice cream cone in your pocket. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Drop down reload
Hi there. You would need to use JavaScript for this, specifically an onChange( ) event for the select field(s). Your JavaScript should basically reload the page once an option has been selected from the first select field, passing through a variable containing the value of the option which has just been selected, you can then use php to retrieve the appropriate records for the second select field when the page is reloaded. Cheers Scott - Original Message - From: Christian Ista [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 16, 2002 1:53 PM Subject: [PHP] Drop down reload Hello, Could you tell me if it possible to reload the current page when I select a value in a drop down ? On a page, I have 2 drop down, the content on the first one come from the database. The content of the second one too (from database) but depend of the first drop down value. An idea to do that ? Bye -- 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