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
How to get a total number of elements used in the array?
What is use of in_array() function in php?
How can you retrieve data from the mysql database using php?
Differentiate echo vs. Print statement.
Do you know how to enable error reporting in php?
What does the scope of variables mean?
What are some new features introduced in php7?
How to redirect a url from http to https in .htaccess?
Define about declare construct?
How do you destroy a particular or all Sessions?
What the use of var_dump()?
What are PHP Magic Methods/Functions. List them.
What is ci in php?
What is filter_var?
What are the features of object-oriented programming in php?