Re: Forms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 21 Mar 2005 10:04:23 -0600, Marquez Design
<smarquez@xxxxxxxxxxxxxxxxxx> wrote:
> Greetings,
> 
> Does anyone know how to get a particular option to display in a drop menu?
> 

Perhaps, do db query first, then for each option (perhaps as a foreach
or something):

echo "<option name=\"whatever\" value=\"xxxx\"";
if (!(strcmp($required_value, $db_result))) { echo " selected"; }
echo ">";

cheers

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux