Re: Form validation
| From: | Tarjei Huse | Date: | Fri, 26 Apr 2002 06:58:27 +0000 |
| Subject: | Re: Form validation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94703@lists.php.net to get a copy of this message | ||
Hi,
I just thought I'd say thank's too all who responded to my question.
Very good answers! I ended up using strip_tags (after someone pointed it
out too me) kombinded with a couple of eregs.
Tarjei
John Holmes wrote:
>
> > I need a function or class to validate a form with a cuple of text
> areas
> > that are alloed to contain a few html tags (<br><p> etc) but not all,
> > and I need a script to validate the input from the fields and stop the
> > html elements that are not allowed.
> >
> > Does anyone have a function or class handy that I might use? (for
> free)
>
> I've got one...
>
> www.php.net/strip_tags
>
> www.php.net/htmlentities
>
> You can have them for free if you send me $20.
>
> ---John Holmes...
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php