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
Explain mixed and callback functions?
Code to upload a file in PHP?
What are the features and advantages of object-oriented programming in php?
How to remove duplicate values from php array?
Explain scalar type declarations in php7?
What is the use of mysql_real_escape_string in php?
What is the difference between implode() and explode() in php?
How to get no of arguments passed to a PHP Function?
What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?
Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?
What is a simple php method to make a cross domain data request?
Explain php split() function.
Which functions are used to count the total number of array elements in php?
Is php worth learning in 2019?
Why do you need php?