You are here: Re: select box « All PHP « IT news, forums, messages
Re: select box

Posted by Peter revera on 01/11/07 15:29

On Thu, 11 Jan 2007 15:29:26 +0000, Geoff Berrow
<blthecat@ckdog.co.uk> wrote:

>Message-ID: <rhlcq29gimodffn7131cal3bc66splqi7t@4ax.com> from Peter
>revera contained the following:
>
>>> $selected=(isset($_GET['listid']) &&$_GET['listid']==$itemid)?"
>>>selected":"";
>>> echo "<option value='$itemid'$selected>$item</option>\n";
>>> }
>>> echo "</select>\n";
>>
>>
>>Ive added the code and when I view the form with the variable pased in
>>the url the select list hasnt changed. It just defaults to the normal
>>order.
>
>How are you passing the variable?
>Should be like this:
>www.example.com?listid=someid

Yep.

edit_item.php?listid=68

 

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

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