display dropdown selection in another area of same form
What's the best way to display the selection of my dropdown select list in another region of the same form.
I'm populating the list from a mysql database using the MySQLi Server Behaviors.
Here's the code for the dropdown list:
<select name="RecurType" onchange="toggleRecurOn(this.options[this.selectedIndex].value);">
<?php
while(!$RecurType->atEnd()) {
?>
<option value="<?php echo($RecurType->getColumnVal("value")); ?>" selected="selected"><?php echo($RecurType->getColumnVal("text")); ?></option>
<?php
$RecurType->moveNext();
}
$RecurType->moveFirst(); //return RS to first record
?>
</select>
Completely unrelated, but there's no option for MySQLi Server Behaviors in the "Ask A Question" choices for posting a new thread.