You are here: Re: [PHP] Forms « PHP « IT news, forums, messages
Re: [PHP] Forms

Posted by Chris Ramsay on 10/04/12 11:11

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация