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
What is json php?
Is php dead 2019?
How to convert a json string to an array in php?
What is the difference between abstract class and interface in php?
How we get browser details of clients machine?
How to connect to mysql from a php script?
How can we set and destroy the cookie in php?
What is basename php?
How to get useful error messages in php?
What is difference between print and echo in php?
How do you end php?
Do you know what's the difference between __sleep and __wakeup?
Explain some most commonly use string functions in php?
What is inheritance in php? How many types of inheritance supports php?
What is the difference between explode() and split() functions?