strip metacharacters from form
David Nicol
davidnicol at gmail.com
Wed Aug 3 21:43:57 CDT 2005
$value =~ s/\W/ /g
On 8/3/05, Don Erickson <derick at zeni.net> wrote:
> On Wed, 3 Aug 2005, Jack wrote:
>
> > Anyone have a quick way to take the value of a text
> > area and strip out the bad characters?
>
> Depending on what you're going to do with it, in php
> escapeshellcmd(htmlentities(addslashes($_POST[text_area)))
> would be a good start.
>
>
> Regards,
>
> -Don
> _______________________________________________
> Kclug mailing list
> Kclug at kclug.org
> http://kclug.org/mailman/listinfo/kclug
>
--
David L Nicol
"This has been your one free extra mile"
More information about the Kclug
mailing list