I suggest:
<option value=<?php print"\"$status\""; ?> SELECTED>

-----Original Message-----
From: venomous [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 10:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] dropdlist doens''t work quite well


Can any body help.

When i use a dropdown list for input to my database it can't use the first
value. The rest of the values work fine.

this is the source of my list

<select name="status">
            <option value="<?php echo $status; ?>" SELECTED>
             <?php echo $status; ?>
            </option>
            <option value="open">Open</option>
            <option value="in behandeling">In behandeling</option>
            <option value="afgehandeld">Afgehandeld</option>
          </select>

check my website for the hole script
http://venomous.homeip.net/config/goeddrop.php



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to