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

Tell me what is mean by an associative array?

525


How can you get the size of an image in PHP?

548


What is the difference between javascript and php?

530


Can I learn laravel without php?

571


How check submit button is clicked in php?

520






What is php compared to html?

543


Tell me what is the use of "enctype" attribute in a html form?

550


How to get number of days between two given dates using PHP?

483


Tell me how can we determine whether a php variable is an instantiated object of a certain class?

560


What is self in php?

555


Explain the installation of PHP on UNIX systems?

551


How to assigning a new character in a string?

578


What is basename php?

519


Is it more secure to use cookies to transfer session ids?

537


Is php worth learning in 2019?

515