mysql
techgeek asked:


I have a large form using html and php, but I would like to use javascript to check my mysql database for verification and auto fill support. Like if I wanted the second field when entered to automatically check my database to see if theirs already a record with that form data and then either give me a messege or auto fill the rest of the fields with the database data. How would I go about achieving this?

Comments

jpasher on 29 July, 2008 at 6:01 pm #

If you want to check it on the fly without submitting the form data to the server, you’ll have to use AJAX. Essentially an AJAX call will request a page on your server that does the query with the given parameters, then it returns the results (typically HTML or a JSON object). There are many different AJAX libraries to choose from

Examples:


Post a Comment
Name:
Email:
Website:
Comments: