[Solar-talk] Validating a checkbox

Paul M Jones pmjones at ciaweb.net
Wed Aug 1 22:53:25 CDT 2007


On Aug 1, 2007, at 9:49 PM, Clay Loveless wrote:

> Has anyone experimented with Solar Form validation on a checkbox?  
> As in, form is invalid if a particular checkbox is not checked?
>
> I'm kicking around a couple of approaches to this ...  
> unfortunately, Solar_Valid doesn't have a "checked" method.

Solar_Valid::notBlank() maybe?



--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.  <http://solarphp.com>

Join the Solar community wiki!  <http://solarphp.org>

Savant: The simple, elegant, and powerful solution for
templates in PHP.  <http://phpsavant.com>




More information about the Solar-talk mailing list