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.)

Answers were Sorted based on User's Feedback



If i make my selection in State Dropdown list, i would the City and ZipCode dropdown list to be aut..

Answer / 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

If i make my selection in State Dropdown list, i would the City and ZipCode dropdown list to be aut..

Answer / guest_shah

u can do this with javascirpt.update ur dropdownlist with
selected values using javascript variable.and return it with
ur script.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More PHP Interview Questions

How do I find out the number of parameters passed into function?

1 Answers  


How the values are ordered in an array?

0 Answers  


How do I install php and apache on windows 10?

0 Answers  


What is var_dump?

0 Answers  


Is laravel easy to learn?

0 Answers  






How to write the form tag correctly for uploading files?

0 Answers  


Explain what does the function get_magic_quotes_gpc() means?

0 Answers  


How to install PHP with --mcrypt and --mhash?

1 Answers  


Tell me what does the array operator '===' means?

0 Answers  


What is the difference between explode and split?

0 Answers  


What are the three parts of an http request?

0 Answers  


Explain the difference between php4 and php5.

0 Answers  


Categories