|
Posted by Richard Brooks on 11/29/05 16:25
I've got a country list which, after selecting and the 'submit' button
is clicked, I need for the list to re-display the selected list element,
the values are for stored database referencing only and not for display.
<select name="country">
<option value="<?php echo $country;?>" SELECTED><?php echo
$country;?></option>
<option Value="AF">Afghanistan</option>
<option Value="AL">Albania</option>
<option Value="DZ">Algeria</option>
.....
<option Value="ZW">Zimbabwe</option>
</Select>
It's one of those 'mental block' days but what I need is for the list to
display the selected element text and not the value so that the user
can check their details.
Many thanks,
Richard.
Navigation:
[Reply to this message]
|