Hi all,
My problem is this: I have one form field from which counties are selected, and I want this to fill a field below it with the towns in that county.
This represents my dismal attempt at achieving this:
switch ($_POST['counties']) {
case "BD";
$_POST['places'] == "BED";
break;
case "BK";
$_POST['places'] == "BER";
break;
case "BU";
$_POST['places'] == "BUK";
break;
}
I've two large arrays, tried to post them here but where to long. The items in double quotes are the keys from the arrays. I tied using :globals ($counties) and globals ($places), these are the arrays vars names, didn't work either.
What the entry is suppose to mean is:
If $counties (key is equal to Bd (bedford) then $places (form_field)
should == (equal to only the towns in bedford, represents by the array key "BED"
If some kind person could point me in the right direction it would be gratefully appreciated.
DG