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

What are php variables?

0 Answers  


What are the differences between require and include, include_once?

3 Answers  


how do we can copy of the content of a web page with the help og the URL and display them onto any other page

5 Answers  


What is action hooks and filter hooks?

0 Answers  


What are helpers in php?

0 Answers  






Is polymorphism inherited?

0 Answers  


What is meant by nl2br()?

4 Answers   Rushmore Consultancy,


What is a php class?

0 Answers  


How do I clear my browser session?

0 Answers  


What are the steps involved to run php?

0 Answers  


How to read a file in php?

0 Answers  


How check variable is set or not in php?

0 Answers  


Categories