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 is the exact Diff. between include_once() and require_once() in PHP?

12 Answers  


What’s the difference between md5(), crc32() and sha1() crypto on PHP? -

2 Answers  


Can php run without server?

0 Answers  


What is the purpose of the following files having extensions 1) .frm 2) .myd 3) .myi? What do these files contain?

2 Answers  


Why and where do we use htaccess?

0 Answers  


what do you mean by webserver's document root?

3 Answers  


What are the different data types in javascript?

1 Answers  


How long does a session last in php?

0 Answers  


Explain what does the expression exception::__tostring means?

0 Answers  


Tell me how to find the position of the first occurrence of a substring in a string?

0 Answers  


Name the Functions in IMAP, POP3 AND LDAP?

2 Answers  


Difference between mysql_connect and mysql_pconnect?

0 Answers  


Categories