RE: [PHP-DB] Form processing

From: Date: Thu, 13 Sep 2007 14:41:29 +0000
Subject: RE: [PHP-DB] Form processing
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-44012@lists.php.net to get a copy of this message
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:ron.php@actsministries.org] Sent: Wednesday, September 12, 2007 7:03 AM To: php-db@lists.php.net 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

« previous php.db (#44012) next »