Re: checkbox unchecked

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

 



At 1:23 PM -0800 12/2/07, Casey wrote:
On Dec 2, 2007 1:08 PM, tedd <tedd.sperling@xxxxxxxxx> wrote:

You don't need to do anything.
<input type="checkbox" name="likes_pie" />

When it's submitted:
<?php
 if ($_GET['likes_pie']) // checked
else // not

That's true unless you're pulling data in from somewhere else (i.e., a dB).

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

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