html lists and checkboxes?
hai i had placed lists for countries,states and cities and if i choose a particular country then i need to find the states for that particular country and after choosing the particular state i need to find the cities in that particular state... plzz help for that code...
Public Comments
- you have to learn JavaScript or PHP and MySQL to use list or checkbox in HTML
- PHP and MySQL to use
- you would want to learn a programming language(php, asp,...) or scripting language like javascript also sql and database or if you dont want to use db and do it the manual hard way xml well the javascript + xml way is the hardest or manual way i can think of :P but preferably a progamming language and database like PHP + mysql which is very common and there are free w/ limitations if database the tables can be - you need to learn how to create a table w/ contraint( primary key and foreign key basic) , and basic select w/ where clause, [ insert , update and delete for putting the data only] [country table] countryID (number preferably , primary key) countryName (text/string) [states tbl] stateID (number preferably , primary key) statesName (text/string) countryID (number preferably ) - refering to the country id (foreign key) [city tbl] cityID (number preferably , primary key) cityName (text/string) stateID (number preferably ) - refering to the states id (foreign key) if xml it could be (note this will be alot of typing :P and mostlikely repitative) - note xml can be viewd in plain text but since its just places no wories :) - you can use javascript to take the xml and change the list <root_node> <country id="A"(optional or it can be the name instead)> "countryname" <state name="a"> <city name="citya"></city> <city name="citya"></city> <city name="citya"></city> </state> <state name="b"> <city name="citya"></city> <city name="citya"></city> <city name="citya"></city> </state> </country> </root_node>
Powered by Yahoo! Answers