RE: Trying to keep a dropdown selection sticky

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

 



On Sat, 2008-07-05 at 21:27 -0700, Warren Vail wrote:
>        foreach ($state_list as $key => $value) {
>           echo "<option value=\"$key\"";
>           if($key == $choice) echo " selected";         // now it's
> sticky
> ;-)
>           echo "> $value</option>\n";
>        } 

Just another quick ?..

where is $choice coming from?


or is that the name of the select in <SELECT NAME='namehere'>
-- 
Michael S. Dunsavage


-- 
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