rmpotter Posted August 13, 2009 Report Share Posted August 13, 2009 I am looking to populate a few select boxes based on the selection made in a preceding select box. Each box uses PHP/SQL to pull that data that populates it. The form itself resides inside of a div on the page so I need a method that does not cause me to reload the entire page. If anyone could help point me in the right direction it would be appreciated. Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted August 13, 2009 Report Share Posted August 13, 2009 What you need is AJAX. AJAX is compatible with PHP to set the value (or innerHTML) of an element to retrieved data.This is the correct example, except the data is put into a table instead of a select box:http://w3schools.com/php/php_ajax_database.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now