Re: Form Textarea question

by "Art Zoller Wagner" <art(at)zollerwagner.com>

 Date:  Tue, 18 Feb 2003 00:25:40 -0500
 To:  "Art Zoller Wagner" <art(at)zollerwagner.com>,
"Beauford.2002" <beauford.2002(at)rogers.com>
 Cc:  "HWG Basics" <hwg-basics(at)hwg.org>
 References:  p1 markone p12 markone2 p13 markone3
  todo: View Thread, Original
Maybe what I wrote is unnecessarily confusing. These are lines in a function
I call when validating the data from the form. I'm suggesting, then that you
include a line like:     $text = trim(stripslashes($text));
and then a line like:         $text = htmlentities($text,ENT_QUOTES);

before sending the data to the db. The sequence is important, as I recall.

You'd also want to to try to eliminate hacking risks and make sure that your
data is complete, of course.

HTH, Art

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA