You could look up the PHP function get_magic_quotes_gpc()
When a form is posted, you could do a check like this:
if ( get_magic_quotes_gpc() ) {
//where $subject contains the subject string and $newsubject is
what you use for the mail
$newsubject = stripslashes ($subject);
}
This will remove the escape slashes added by the server php settings.
Read magic_quotes_gpc in php reference.
-----Original Message-----
From: ron.php [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 12, 2007 7:03 AM
To: [email protected]
Subject: [PHP-DB] Form processing
I am trying to set up a form which will send e-mails for "late breaking
news"
and urgent e-mailings.
If I have "Today's news" in the subject line on the e-mail it comes out
with "Today\'s news" --- how can I prevent this from happening?
Ron
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php