Hi,
I have a drop down box with static values. When user choose "Routine", then click submit button, I want the screen will dipslay "Routine" in the drop down. What should I code?
Here is part of my code:
But I only get the value displayed in the drop down. How can I get option selected not the value itself?
Thanks!
hongmei
<td colspan="1" width="180">
<select name="selInitPriority" size="1">
<option value="<?php
if (isset($POST['selInitPriority'])) {
echo htmlspecialchars($POST['selInitPriority']);
}?> "><?php echo $_POST['selInitPriority'] ?></option>
<option value=""></option>
<option value="routine">Routine</option>
<option value="urgent">Urgent</option>
<option value="emergency">Emergency</option>
</select>
</td>