You are here: Re: setting initial vlaue of optionbox « PHP « IT news, forums, messages
Re: setting initial vlaue of optionbox

Posted by Jasper Bryant-Greene on 09/28/89 11:20

Ross wrote:
> value="<?=$subject; ?>"
>
> Keeps the value of $subject that was previously entered in the textarea even
> after the form is submitted with php_self(). Is this possible with the
> listbox??

<select name="selectBox">
<option value="someOption"<?php if($_GET['selectBox'] == 'someOption')
{ ?> selected<?php } ?>>Some Option</option>
</select>

Alter to suit your needs, of course.

Jasper

 

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

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