Jump to content


Photo

Apostrophe problem after sending email


  • Please log in to reply
2 replies to this topic

#1 janggu

janggu
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 07 April 2006 - 07:19 PM

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 go
Delivered: Let\'s go

Does anyone have any idea why it is happening?

Thank you.

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 07 April 2006 - 07:22 PM

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

#3 janggu

janggu
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 07 April 2006 - 09:01 PM

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) View Post[/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]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users