ballouta Posted April 18, 2009 Share Posted April 18, 2009 Hi, I am sending for example this text from my php form to my email address: Though I was leery at first, I am now officially excited to see one of my favorite documentaries of all time as a feature film: "Grey Gardens," starring Jessica Lange and Drew Barrymore. When i get the email, i have \" AND \'. Why? how I can solve this? Thank you Link to comment https://forums.phpfreaks.com/topic/154625-solved-slashes-added/ Share on other sites More sharing options...
Mchl Posted April 18, 2009 Share Posted April 18, 2009 Check if you have magic_quotes enabled Link to comment https://forums.phpfreaks.com/topic/154625-solved-slashes-added/#findComment-813062 Share on other sites More sharing options...
ballouta Posted April 18, 2009 Author Share Posted April 18, 2009 sorry but where do i check it?! Link to comment https://forums.phpfreaks.com/topic/154625-solved-slashes-added/#findComment-813066 Share on other sites More sharing options...
Axeia Posted April 18, 2009 Share Posted April 18, 2009 <?php phpinfo(); ?> Then search in your browser for magic. Or take a look at the get_magic_quotes_gpc function. Link to comment https://forums.phpfreaks.com/topic/154625-solved-slashes-added/#findComment-813069 Share on other sites More sharing options...
ballouta Posted April 18, 2009 Author Share Posted April 18, 2009 echo get_magic_quotes_gpc(); it returned 1 now what shall I do? thank you Link to comment https://forums.phpfreaks.com/topic/154625-solved-slashes-added/#findComment-813070 Share on other sites More sharing options...
Axeia Posted April 18, 2009 Share Posted April 18, 2009 1 = true (0 = false) So yes you have magic quotes enabled. Add set_magic_quotes_runtime( false ); to the top of your script. Link to comment https://forums.phpfreaks.com/topic/154625-solved-slashes-added/#findComment-813074 Share on other sites More sharing options...
Mchl Posted April 18, 2009 Share Posted April 18, 2009 If you have access to your php.ini file, you can disable them all together. Link to comment https://forums.phpfreaks.com/topic/154625-solved-slashes-added/#findComment-813085 Share on other sites More sharing options...
PFMaBiSmAd Posted April 18, 2009 Share Posted April 18, 2009 And since magic_quotes_gpc (which cannot be turned off in the script) and magic_quotes_runtime (can be turned off in the script) are two different things, if the offending single and double quotes were in fact coming from form input, this thread is not actually solved. Link to comment https://forums.phpfreaks.com/topic/154625-solved-slashes-added/#findComment-813090 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.