Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best way to sanitize / filter user input?
#8
Also a very handy way of sanitizing is using the strip_tags() function from PHP. This will strip all tags and an optional parameter to include tags not to be stripped.

http://www.php.net/strip_tags

This is very useful if you do not want any <script> etc. tags in your user input.
Reply


Messages In This Thread
RE: Best way to sanitize / filter user input? - by Lord-Nikon - 06-13-2010, 04:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP email input form - having trouble getting the form to work... abayindi 4 2,457 03-19-2012, 10:02 AM
Last Post: RainbowDashFTW
  PHP Form to Email (And the form input as VCF Attachment)? VypeR 1 3,605 10-27-2010, 06:01 AM
Last Post: VypeR
  User Management Script - User Cake Support 9 5,322 05-13-2010, 03:21 PM
Last Post: Julie

Forum Jump:


Users browsing this thread: 1 Guest(s)