Select Field
In the following code, when I make a selection, it doesn't display it in the select box. It just keeps showing the"Select County" text.
How do I make it show what I selected?
<select name="CountyName" id="CountyName" onchange="this.form.submit()" >
<option value="" selected>Select County</option>
<?php
while(!$rsCounty->atEnd()) { //dyn select
?>
<option value="<?php echo($rsCounty->getColumnVal("CountyName")); ?>"<?php if (!(strcmp($rsCounty->getColumnVal("CountyName"), ((isset($_GET["select"]))?$_GET["select"]:"")))) {echo "selected=\"selected\"";} ?>><?php echo($rsCounty->getColumnVal("CountyName")); ?></option>
<?php
$rsCounty->moveNext();
} //dyn select
$rsCounty->moveFirst();
?>
</select>