Hi I have a drop down that submits a county. The issue I have is that when I use the code in a page that is an update details type page it doesn't displaythe row from the database even though there is one in there:
<p>County:
<select size="1" name="county"
<option value="Aberdeenshire" <?php if (isset($_POST['county']) and $_POST['county'] == "Aberdeenshire") echo "selected"?>>Aberdeenshire</option>
<option value="Anglesey" <?php if (isset($_POST['county']) and $_POST['county'] == "Anglesey") echo "selected"?>>Anglesey</option>
<option value="Angus" <?php if (isset($_POST['county']) and $_POST['county'] == "Angus") echo "selected"?>>Angus</option>
<option value="Argyll" <?php if (isset($_POST['county']) and $_POST['county'] == "Argyll") echo "selected"?>>Argyll</option>
<option value="Avon" <?php if (isset($_POST['county']) and $_POST['county'] == "Avon") echo "selected"?>>Avon</option>
</select></P>
<P> </P>
How do I get the county to be displayed when the page is loaded?
Thanks,
G