Jump to content

[SOLVED] PHP Form adds slashes


itsjareds

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.