If i make my selection in State Dropdown list, i would the
City and ZipCode dropdown list to be automatically reupdated
based on the State i select.(This to avoid the user select a
City or Zipcode that does not correspond to the State
previously selected.)

Answer Posted / priti

Use AJAX for this problem. Create XMLHttpRequest and hit
server with parameter "state" get the City and Zipcode from
the database and return the output and fill in your City or
Zipcode variable.


Thanks.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of preg_match in php?

736


What are the __construct() and __destruct() methods in a php class?

713


What are the advantages of stored procedures in php?

699


Explain me what is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?

703


What is prepare in php?

763


Explain setcookie() function in php?

766


What are the three parts of an http request?

753


What is csrf verification?

743


How long should a session last?

708


Why php is also called as scripting language?

733


Who developed php?

748


What is the difference between abstract class and interface in php?

754


Is json a string php?

696


How is the comparison of objects done in php?

703


How to repeat a string to a specific number of times in php?

744