mikefrederick Posted April 10, 2008 Share Posted April 10, 2008 when i enter an apostrophe into an input form it comes out with 3 slashes before it. i know i can escape the slashes afterwards, but is there a way to enter them in a way that will allow get rid of the slashes before they are sent away? Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted April 10, 2008 Share Posted April 10, 2008 Read the manual about Magic Quotes. Quote Link to comment Share on other sites More sharing options...
mikefrederick Posted April 10, 2008 Author Share Posted April 10, 2008 i read it, in other words theres no way to do so without turning that off? Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted April 10, 2008 Share Posted April 10, 2008 You can write a function that removes them at the beginning of the script before you do anything with the values. For one such function (which happens to be the top-most comment in the Magic Quotes documentation): http://talks.php.net/show/php-best-practices/26 It helps to view that page with CSS disabled. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.