[SOLVED] Mail(): " showing as \"

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Rahil
Forum Newbie
Posts: 17
Joined: Sun Feb 15, 2004 2:24 pm
Location: Toronto, Ontario, Canada

[SOLVED] Mail(): " showing as \"

Post by Rahil »

I have page where the user can enter their email address (textbox), subject (textbox), and message (textarea). Once they hit submit, the message is sent to me. If the user puts the ' character (single-quote) or the " character (doube-quote), it shows up as '' or \" in the email. How can I prevent this from happening, without escaping these special characters with a backslash in the textarea itself? Thanks in advance.
Last edited by Rahil on Thu Jul 29, 2004 4:41 pm, edited 1 time in total.
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

[php_man]stripslashes()[/php_man]
Rahil
Forum Newbie
Posts: 17
Joined: Sun Feb 15, 2004 2:24 pm
Location: Toronto, Ontario, Canada

Post by Rahil »

Illusionist wrote:[php_man]stripslashes()[/php_man]
lol, thanks :D
Post Reply