I have a php include as a search property in an area but the client now want it to be broken down into areas more defined ie at the moment all the area are selected from one list/menu but what they now want is for the user to select a counties and the second list to show the town and city’s in that counties so the user can select from 1,2,3 ect places to see what property are for sale
This is part of the code for the list/menu as it is some 700 lines long this also make the page very large in size so I wanted to know 2 things can the locations ie counties name and town name be put in 2 tables in SQL to be called from their and how this can be done?
I know it can be done in MS Access as a cascading combo box
<select nameselect name="PROPERTYLOCATION">
<option value="Abbeyhill" selected>Abbeyhill</option>
<option value="Abercrombie">Abercrombie</option>
<option value="Aberdeen">Aberdeen</option>
<option value="Aberdeenshire">Aberdeenshire</option>
<option value="Aberdour">Aberdour</option>
<option value="Aberfeldy">Aberfeldy</option>
<option value="Aberfoyle">Aberfoyle</option>
<option value="Aberlady">Aberlady</option>
<option value="Aboyne">Aboyne</option>
<option value="Addiewell">Addiewell</option>
<option value="Airdrie">Airdrie</option>
<option value="Airth">Airth</option>
<option value="Alexandria">Alexandria</option>
I now this can be done but how do I do it?
I know their has to be a comon link between town city ie if Nottingham and Sutton-in-Ashfield were in Nottinghamshire then they would have the group code ie
Area 1 would have to have all the towns and cities with the group ID code for that area and that the towns and cities would have to have their own ID code