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  


is php is the best for this situation

2 Answers  


List some string function name in php?

0 Answers  


Why do you need to filter out empty files?

0 Answers  


Tell me how can we define a variable accessible in functions of a php script?

0 Answers  






i want to store retrieved data from database into an array list with limit.And display the data from that array list.have any answer for this?

2 Answers  


Does cors prevent csrf?

0 Answers  


How escape single quotes php?

0 Answers  


Write down the code for save an uploaded file in php.

0 Answers  


what is session_set_save_handler in PHP?

0 Answers  


Is php a float?

0 Answers  


Are php variables global?

0 Answers  


Categories