<option value=''>All States</option> <option value=''>--------------------</option> <?php $sArr = $geoManager->getStateArr($qCountry); foreach ($sArr as $s) { echo '<option ' . ($qState == $s ? 'SELECTED' : '') . '>' . $s . '</option>'; } ?> </select> </div> <div style="float:left;margin-right:10px;"> <select name="qcounty" style="width:180px;"> <option value=''>All Counties</option> <option value=''>--------------------</option> <?php $coArr = $geoManager->getCountyArr($qCountry, $qState); foreach ($coArr as $c) { echo '<option ' . ($qCounty == $c ? 'SELECTED' : '') . '>' . $c . '</option>'; } ?> </select> </div> </div> <div style="clear:both;margin-top:5px;"> <div style="float:left;margin-right:10px;"> <select name="qmunicipality" style="width:180px;"> <option value=''>All Municipalities</option> <option value=''>--------------------</option> <?php $muArr = $geoManager->getMunicipalityArr($qCountry, $qState); foreach ($muArr as $m) {