Hi all,
I have a script where a user can go and update their details, the problem I am having is with a drop down box and retrieving the value:
<p>How many years working once fully qualified?:</td><td><select size="1" name="yearsasqualified"
<option value='1' <?php if ($_POST['yearsasqualified'] == 1) echo "selected"?>>1</option>
//<option>1</option>
<option value='2' <?php if ($_POST['yearsasqualified'] == 2) echo "selected"?>>2</option>
The problem I have is an undefined index on option 2 if say option 1 is selected.
Any ideas on how to fix this?
Thanks,
G