Below is SOME code from my drop down box class.
I would like to make the drop down box sticky so that when a user fills out the form and makes a mistake, or leave out a certain field, the values he/she selected from the drop down box remain intact with the reload.
function tooString()
{
$text="<tr><td><b>".$this->drophead."</b></td></tr>
<tr><td></td><td><b>".$this->label."</b></td>
<td>
<select name='".$this->name."'>";
foreach($this->options as $option)
$text.="<option value='".$option."'>".$option."</option>";
$text.="</select>
</td>
</tr><tr><td></td></tr>";
return $text;
}
}
?>