Strip slashes from user input

Category: PHP - Editors

This code checks if magic quotes are enabled, and if so, strips slashes from GET, POST and COOKIE arrays. It's fully recursive, and thus supports POST arrays. Date: 22 April, 2012


Strip Slashes - User Input - Php Snippets - Strip - Slashes - User

Homepage: http://snippets.dzone.com

Developer: snippets.dzone.com

License: Freeware

Operating System: Windows, Linux

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Got bored one day writing line after line of stripslashes for form data, so I wrote this.

developer Developer: px.sklar.com
license License: Freeware
operating systems Operating System: Windows, Linux, BSD, Solaris


An important aspect of creating Web Forms pages for user input is to be able to check that the information users enter is valid.

developer Developer: http://www.x-code.com/vd...
license License: Freeware
operating systems Operating System: Unix, Windows


Sometimes we need a way to test the user input to know if it is an integer, but a lot of algorithms available t are incomplete since they only check to see if the input contain the numeric values from 0 to 9.

developer Developer: planet-source-code.com
license License: Freeware
operating systems Operating System: All


These two helpers will strip all HTML tags from user input you don't want and also auto-close tags that were accidentally left open.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


More or less this is a great replacement for an alert, prompt, and confirm.

developer Developer: ftp.drupal.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Detect when system is idle, globally.

developer Developer: Gabriel Genellina
license License: Freeware
operating systems Operating System: Windows


Virtual FTP for a WebSite allows you to manage a website via FTP.

developer Developer: phpbuilder.com
license License: Freeware
operating systems Operating System: All


Emailer Class - emailer class for php.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


PHP5 introduces visibility for object/class methods and data members.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux