itsjareds Posted September 1, 2008 Share Posted September 1, 2008 I'm making a PHP file editor for my friend who needs some file hosting on my site, and it all seems to be working fine except that saving the form adds slashes to quotes ( ' and " ). I tried using PHP GET and POST, they both did the same thing. Is there something I'm missing? Here is my complete page, pack.js Link to comment https://forums.phpfreaks.com/topic/122275-solved-php-form-adds-slashes/ Share on other sites More sharing options...
Fadion Posted September 1, 2008 Share Posted September 1, 2008 You should have magic quotes turned on, which automatically escapes certain characters. You better turn them off as are deprecated and will be removed in php6. Take a look at the section of the manual about this subject. EDIT: I forgot, you can use stripslashes() to remove those slashes manually. Link to comment https://forums.phpfreaks.com/topic/122275-solved-php-form-adds-slashes/#findComment-631402 Share on other sites More sharing options...
itsjareds Posted September 1, 2008 Author Share Posted September 1, 2008 Thanks That fixed it. Link to comment https://forums.phpfreaks.com/topic/122275-solved-php-form-adds-slashes/#findComment-631404 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.