On Sat, 2008-07-05 at 21:27 -0700, Warren Vail wrote:
>foreach ($state_list as $key => $value) {
> echo " if($key == $choice) echo " selected"; // now it's
> sticky
> ;-)
> echo "> $value\n";
>}
Just another quick ?..
where is $choice coming
On Sat, 2008-07-05 at 21:27 -0700, Warren Vail wrote:
> When you fail to indicate which item in a select list is "selected"
> most
> browsers will default to showing the first entry (effectively
> unsticking
> your choice).
>
> Good luck
ahhh! I was wondering where the "selected" came fro :)
T
ted" most
browsers will default to showing the first entry (effectively unsticking
your choice).
Good luck,
Warren Vail
> -Original Message-
> From: Michael S. Dunsavage [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 04, 2008 6:32 PM
> To: php-general@lists.php.net
> Su
I have a form I want to keep sticky, but I can't figure out how. I got
all the 's to be sticky
The select script
State';
echo '';
foreach ($state_list as $key => $value) {
echo " $value\n";
}
echo '';
echo '';
?>
so now how do I keep that sticky?
--
Mic
4 matches
Mail list logo