Posted by Alec on 05/16/06 21:59
I have a drop down list with the town options 'Bury' and 'Ipswich' as
shown below.
When selecting one of the options, its value is passed to variable
$townsearch.
How do I change the drop down list so the option selected last time is
then the current one shown in the drop down box?
<body>
<?php $townsearch = $_get['town']; ?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
<select size="1" name="town">
<option>ipswich</option>
<option>bury</option>
</select>
<input type="submit" value="GO" />
</form>
Many thanks
Alec
[Back to original message]
|