The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How do I universally stripslashes on my PHP form input
Aruban
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Liam Quinn
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 12:13 AM