[thelist] php: how to reselect a checkbox on page reload

**1st Vamp** wes at pmason.karoo.co.uk
Sat Aug 9 18:25:50 CDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: MD5

Nowrap can be used in this context, but it's depreciated last time I checked, and CSS is
preferrable.
The checked attribute is boolean, and can so be set to true or false.
i.e. checked="true"
I believe in this case, any value such as "checked" sets it to true.

- --
1stVamp
(Wesley Aaron Mason)

[ Site at somewhere :: http://1stvamp.org/ ]
[ Webcomic from nowhere :: http://gfbowl.com/ ]

Saturday, August 9, 2003, 6:00:37 PM, Kelly Hallman wrote:

> On Sat, 9 Aug 2003, Jeff Howden wrote:
>> i'm no php person, but if you're going to be using xhtml syntax for your
>> <input /> tags, shouldn't your compact attributes be expanded (and
>> lowercase)?
>>
>> <input type="checkbox" name="foo" id="foo" value="1" checked="checked" />

> Yes, for sure.. I never really knew what to do with checked/selected/etc
> in that context.  Somehow I knew someone would probably fault my HTML ;)

> Thanks, though.. checked="checked" appeals much more to my sensibilities
> than a dangling argument with no value, anyway...  While we're on that
> topic... what about nowrap?  Is it now done only with CSS, or
> nowrap="nowrap" ?  Further, does the value supplied even matter?

> Thanks!

> --
> Kelly Hallman
> http://wrack.org/

-----BEGIN PGP SIGNATURE-----
Version: 2.6

iQIMAwUAPzWDAutR7En81eJTAQFqCA+3ReH/qupxZgPIgf1CehlO1XlwmtDk5FOY
zPiUMtykNqJoFuQlP1Vx1Q8/CG2Xo5jLmtm6Pp8AOMQ+lXxoZMPpC/SCUO3K4r9S
BKRtSfrNDpaSkGO468c+HLTHWltZC4N5ipy6CaGJWq9Wx3X8kFNoMjmmiSd8i96p
aHn7AEZvnVIj+cSfMQIpIIklLV2NEd0l7jhL4uM1IpPtp2GX7gwZ5iwDmX4IvmEe
6PwwUHO0r+WRJaVd/MAEt25QyryZyCCjyGtbHl/VZ3hkP/w4BY1RDHLsE3ZSaIcm
2fCqCE7UKvTj+4jhjI+5Sg9zSBWcTWa9Q1uzjHpMecjywQGAYTlPkYc0V++7kOh/
z/b8nWrDeblzPXy/rhoydDGChpM1+MOEYhu2iONEZ2M6oopjd+xkGqPivXXObCI2
wxPgNx+u5pW8YNPV7/d1UOedUjIJIvnk7ZCtD4SbB3i1KCLChafTIBXgA1lSCvVD
D99slKk0cCqUVOvabixdI6Opm8Nz/gMymGNJRTNSForgYOJwFl25ZEWYv9TvsTvl
5753aFqLnxqAudso6tFqgKhtw8HkSYo/niMfSiysTZC5sqeq1MJk8u4odWP5lc+s
84Gj2bzmYhJqvUjGiCae1UZnWZzDFvkFgo/BQL6WN6ZEYdVQJn72Vv2nPekY+c4=
=daOO
-----END PGP SIGNATURE-----



More information about the thelist mailing list