PHP Sticky form drop down menu
I need to make this "sticky" (if a user makes a choice and the form is submitted then make the form remember the choice) and cannot figure out how to code it.
<select name="merchantCategoryID" id="merchantCategoryID" >
<option value="">Please choose a category</option>
<?php
do {
?>
<option value="<?php echo $row_getStoreCategories['merchantCategoryID']?>"
<?php
if ($row_getStoreCategories['merchantCategoryID']==$row_getMerchant['merchantCategoryID']) {
echo "selected=\"selected\"";
} ?>>
<?php echo $row_getStoreCategories['Category']?></option>
<?php
} while ($row_getStoreCategories = mysql_fetch_assoc($getStoreCategories));
$rows = mysql_num_rows($getStoreCategories);
if($rows > 0) {
mysql_data_seek($getStoreCategories, 0);
$row_getStoreCategories = mysql_fetch_assoc($getStoreCategories); }
?>
</select>
