Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
unescape character $post/mail()
Old 04-25-2009, 11:34 PM unescape character $post/mail()
Extreme Talker

Posts: 176
Trades: 0
I'm sending an e-mail, and it gets data from the previous page via post.

When I get the email, any quotes in the message are escaped(\"). How can I fix this?
Skeddles is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-26-2009, 12:06 AM Re: unescape character $post/mail()
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
stripslashes
http://us2.php.net/manual/en/function.stripslashes.php
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 04-27-2009, 04:56 AM Re: unescape character $post/mail()
nayes84's Avatar
Extreme Talker

Latest Blog Post:
Difference between ASP And JSP
Posts: 232
Name: John
Location: Tokyo
Trades: 0
you have two ways to go.
one is to disable magic_quotes in php.ini
Code:
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
so it may be not the best way to go

otherway is to take out slashes from message body and subject
ex:
PHP Code:
$body=stripslashes($body);
$subject=stripslashes($subject); 
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

if(I'm("Helpful")) Add_Talkupation("nayes84");
nayes84 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to unescape character $post/mail()
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.61305 seconds with 12 queries