In my registeration form i have fields named country and city. I want that i select a country lets say USA then city field should show all the cities in USA.
i know that i have to put all the cities in Database and then bind it to dropdown box , putting IF statements etc blah blah !!!
but isn't there some alternative to do it , to save time ? it would take alot of time to code. HELP !!!
HunainHafeez
9
Posting Whiz
Recommended Answers
Jump to PostYou don't have to be lazy. Thats the best practice, Thats the demand of coding. You would need to create 2 tables, one for the city and another for the country. You obviously need to link up the 2 tables by having the primary key of country table as a …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.