Re: best/easiest way to validate a Yes/No group field?
| From: | Justin Patrin | Date: | Tue, 15 Mar 2005 00:45:43 +0000 |
| Subject: | Re: best/easiest way to validate a Yes/No group field? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18053@lists.php.net to get a copy of this message | ||
On Mon, 14 Mar 2005 16:39:57 -0800 (PST), l Burnerheimerton
<lburnerheimerton@yahoo.com> wrote:
> Sorry. By validate, I mean I want to make certain
> that IF something was entered for that field, either a
> "Y" or "N" was entered. Not requiring that field.
Well, you could easily do a callback which does this.
>
>
> --- Justin Patrin <papercrane@gmail.com> wrote:
> > On Mon, 14 Mar 2005 16:26:35 -0800 (PST), l
> > Burnerheimerton
> > <lburnerheimerton@yahoo.com> wrote:
> > > I have lots of Yes/No fields on a form. I want to
> > > validate all fields going in to database.
> > >
> > > Do you write a custom validation or is there
> > another
> > > way?
> > >
> >
> > Validate it how? If you just need one or the other
> > checked, look into
> > addGroupRule.
> > --
> > Justin Patrin
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
--
Justin Patrin