RE: [PHP-GENERAL] question about <select> tag and PHP

From: Date: Wed, 21 Jun 2000 13:05:44 +0000
Subject: RE: [PHP-GENERAL] question about <select> tag and PHP
Groups: php.general 
Request: Send a blank email to php-general+get-2480@lists.php.net to get a copy of this message
<SELECT CLASS="dropDownList" NAME="ADMINLEVEL[]"> <OPTION VALUE="0" <?php echo ($ereqDB->f("admin_level")=="0"?"SELECTED":"")?>>Supervisor <OPTION VALUE="1" <?php echo ($ereqDB->f("admin_level")=="1"?"SELECTED":"")?>>Finance <OPTION VALUE="2" <?php echo ($ereqDB->f("admin_level")>="2"?"SELECTED":"")?>>User </SELECT> -Stewart -----Original Message----- From: xinkun wang [mailto:xinkun_wang@hotmail.com] Sent: 21 June 2000 10:00 To: php-general@lists.php.net Subject: [PHP-GENERAL] question about <select> tag and PHP A user select a option from the <select> tag of a form (HTML)and store the integer value in database. When retrieving the integer value from database, how can I send the value back to <select> tag. ( I can't use preselect which add "selected" in the <option> tag). ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#2480) next »