RE: [PHP] Trying to keep a dropdown selection sticky

2008-07-05 Thread Michael S. Dunsavage
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

RE: [PHP] Trying to keep a dropdown selection sticky

2008-07-05 Thread Michael S. Dunsavage
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

RE: [PHP] Trying to keep a dropdown selection sticky

2008-07-05 Thread Warren Vail
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

[PHP] Trying to keep a dropdown selection sticky

2008-07-04 Thread Michael S. Dunsavage
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