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

Explain mixed and callback functions?

840


Code to upload a file in PHP?

805


What are the features and advantages of object-oriented programming in php?

730


How to remove duplicate values from php array?

798


Explain scalar type declarations in php7?

749


What is the use of mysql_real_escape_string in php?

687


What is the difference between implode() and explode() in php?

736


How to get no of arguments passed to a PHP Function?

720


What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?

765


Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?

758


What is a simple php method to make a cross domain data request?

737


Explain php split() function.

755


Which functions are used to count the total number of array elements in php?

801


Is php worth learning in 2019?

728


Why do you need php?

767