Two drop down lists in Ajax and MySQL

Posted by Milla on Stack Overflow See other posts from Stack Overflow or by Milla
Published on 2010-03-24T11:20:56Z Indexed on 2010/03/24 11:23 UTC
Read the original article Hit count: 201

Filed under:
|

I'm trying to learn some Ajax and MySQL...

Basically, the code that I have right now is similar to: http://www.w3schools.com/PHP/php_ajax_database.asp

I was wondering how should I modify those codes (both html, javascript and php) to create two drop down lists. The first drop list would be used for choosing the Lastname (eg. Swanson) and the second drop list would be used for choosing the Hometown (eg. Quahog). Then the user would click "Submit" button and the query would return the matching results (eg. all the Swansons living in Quahog).

I'd be very thankful for all the ideas!

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about mysql