How do I universally stripslashes on my PHP form input |
How do I universally stripslashes on my PHP form input |
Aruban |
Oct 25 2006, 01:40 PM
Post
#1
|
Newbie Group: Members Posts: 12 Joined: 25-October 06 Member No.: 565 |
I have a PHP form that has a lot of input from users.
Rather than stripslashes on each variable, is there an easier way to do it? Thanks for all of the help. |
Liam Quinn |
Oct 25 2006, 09:22 PM
Post
#2
|
WDG Founder Group: Root Admin Posts: 52 Joined: 2-August 06 From: Canada Member No.: 1 |
Disable PHP's goofy "magic quotes". Then the slashes won't get added in the first place.
http://www.php.net/manual/en/security.magicquotes.php http://www.php.net/manual/en/security.magi...s.disabling.php |
Lo-Fi Version | Time is now: 25th April 2024 - 12:13 AM |