Jump to content

Apostrophe problem after sending email


janggu

Recommended Posts

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.
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.