minicoop503 Posted October 5, 2009 Share Posted October 5, 2009 So, I made an html form and then a php script to get the data entered and send them in an email. The only problem is whenever someone enters an ' or ", such as "don't", it shows up in the email as "don\'t" or the quotes are \". Any ideas on why it is doing this? Thanks Link to comment https://forums.phpfreaks.com/topic/176623-phphtml-form-returning-weird-characters/ Share on other sites More sharing options...
czzplnm Posted October 5, 2009 Share Posted October 5, 2009 Can we see the php code your using? Link to comment https://forums.phpfreaks.com/topic/176623-phphtml-form-returning-weird-characters/#findComment-931149 Share on other sites More sharing options...
toplay Posted October 5, 2009 Share Posted October 5, 2009 If you're not doing it yourself (i.e. addslashes), then check your PHP magic quotes setting. See below. "If magic_quotes_runtime is enabled, most functions that return data from any sort of external source including databases and text files will have quotes escaped with a backslash." http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-runtime http://www.php.net/manual/en/function.set-magic-quotes-runtime.php Link to comment https://forums.phpfreaks.com/topic/176623-phphtml-form-returning-weird-characters/#findComment-931153 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.