Re: Forms
| From: | Chris Ramsay | Date: | Mon, 21 Mar 2005 16:15:12 +0000 |
| Subject: | Re: Forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211198@lists.php.net to get a copy of this message | ||
On Mon, 21 Mar 2005 10:04:23 -0600, Marquez Design
<smarquez@marquez-design.com> 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