I'm doing a PHP + mysql application which will verify zip code on member form. I hope to do the verification on client side script, javascript.
Zip Code: <input text>
City: <input text>
State: <selection box> or <input text>
After user enter 5 digits zip code, javascript function is called and zip code is verified by querying zip code database. If zip code is wrong, error message prompt. Else, city and state will be returned and City and State are auto filled in the form.
I wonder if I can execute a query from javascript function? Or anyone have better idea on this question? Please help... thanks in advance!
Zip Code: <input text>
City: <input text>
State: <selection box> or <input text>
After user enter 5 digits zip code, javascript function is called and zip code is verified by querying zip code database. If zip code is wrong, error message prompt. Else, city and state will be returned and City and State are auto filled in the form.
I wonder if I can execute a query from javascript function? Or anyone have better idea on this question? Please help... thanks in advance!