janggu Posted April 7, 2006 Share Posted April 7, 2006 Hi there,I used some PHP script for sending email but found a problem. When I type an apostrophe in textrea, I get email like following.Typed : Let's goDelivered: Let\'s goDoes anyone have any idea why it is happening?Thank you. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted April 7, 2006 Share Posted April 7, 2006 You have magic quotes (see [a href=\"http://www.php/net/get_magic_quotes_runtime\" target=\"_blank\"]get_magic_quotes_runtime[/a]) turned on in your php.ini file. Use the function [a href=\"http://www.php.net/stripslashes\" target=\"_blank\"]stripslashes[/a]() to remove the slashes.Ken Quote Link to comment Share on other sites More sharing options...
janggu Posted April 7, 2006 Author Share Posted April 7, 2006 Thanks a lot! That resolved the issue. However, I have another problem that the text is broken up."You men tioned in your last message that he should register again in order to receiv e the"I tried to find a pattern and looks like it happens every 14 characters.Please help!!! :([!--quoteo(post=362631:date=Apr 7 2006, 07:22 PM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ Apr 7 2006, 07:22 PM) [snapback]362631[/snapback][/div][div class=\'quotemain\'][!--quotec--]You have magic quotes (see [a href=\"http://www.php/net/get_magic_quotes_runtime\" target=\"_blank\"]get_magic_quotes_runtime[/a]) turned on in your php.ini file. Use the function [a href=\"http://www.php.net/stripslashes\" target=\"_blank\"]stripslashes[/a]() to remove the slashes.Ken[/quote] 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.