?> "> </div> <div class="form-group"> <label for="aelocationcity">City / Town</label> <input type="text" name="city" class="form-control" id="locationcity" maxlength="50" value="<?php echo isset($city) ? $city : ''; ?> " required> </div> <div class="form-group pull-left" style="width: 47%;"> <label for="locationcountystate">County/Region, State</label> <select class="form-control" id="locationcountystate" name="countyid"> <option></option> <?php $counties = County::getAll(); foreach ($counties as $countyrow) { $countyrowid = $countyrow['id']; $countyrowname = $countyrow['name']; $countyrowstatecd = $countyrow['statecd']; ?> <option value="<?php echo $countyrowid; ?> " <?php echo !empty($countyid) && $countyrowid == $countyid ? 'selected' : ''; ?> ><?php echo $countyrowname . ', ' . $countyrowstatecd; ?> </option>