0

How to add autocomplete city and state drop down list in HTML form?

I want to add a city and state drop-down list where the user first chooses the state and according to the state, the list of the cities appears. Also, suggest a way to use the inputted state and city in PHP code for back-end use maintaining a database.

9th Dec 2020, 4:22 PM
Ayush Dubey
Ayush Dubey - avatar
4 Antworten
0
Yes I know. Showing your attempted helps get your questions answered. This is the best I can do unfortunately.
9th Dec 2020, 5:57 PM
Chris Coder
Chris Coder - avatar
+ 1
I recommended heading over to https://stackoverflow.com/ and asking your question there you're more likely to find many experts who can help.
10th Dec 2020, 12:50 AM
Chris Coder
Chris Coder - avatar
9th Dec 2020, 5:36 PM
Chris Coder
Chris Coder - avatar
0
Chris C. Nice of you gentleman, but that's my code!😂 I want to know a way to retrieve the city. I could retrieve the state using $_POST['stt'] but how to get the city???? Can you help?
9th Dec 2020, 5:53 PM
Ayush Dubey
Ayush Dubey - avatar