Hi
Does anyone know how to make this dynamic field 'sticky'.
The code as it currently stands does not keep the chosen item showing in the field if there is an error in the form. It just default back to nothing
Many thanks
<select name="condo_nm" class="maintextnopad" id="condo_nm">
<?php
do {
?>
<option value="<?php echo $row_rs_condo['condo_name']?>"><?php echo $row_rs_condo['condo_name']?></option>
<?php
} while ($row_rs_condo = mysql_fetch_assoc($rs_condo));
$rows = mysql_num_rows($rs_condo);
if($rows > 0) {
mysql_data_seek($rs_condo, 0);
$row_rs_condo = mysql_fetch_assoc($rs_condo);
}
?>
</select>