Posted by Jasper Bryant-Greene on 09/28/89 11:20
Ross wrote:
> value="<?=$subject; ?>"
>
> Keeps the value of $subject that was previously entered in the textarea even
> after the form is submitted with php_self(). Is this possible with the
> listbox??
<select name="selectBox">
<option value="someOption"<?php if($_GET['selectBox'] == 'someOption')
{ ?> selected<?php } ?>>Some Option</option>
</select>
Alter to suit your needs, of course.
Jasper
Navigation:
[Reply to this message]
|