RE: [PHP] stripslashes, within a string?

From: Date: Thu, 08 May 2003 10:03:22 +0000
Subject: RE: [PHP] stripslashes, within a string?
Groups: php.general 
Request: Send a blank email to php-general+get-146814@lists.php.net to get a copy of this message
Perfect! Cheers... Stupid mistake... ;-) "Ford, Mike [LSS]" <M.Ford@lmu.ac.uk> 08/05/2003 10:41 To: "'Tristan.Pretty@risk.sungard.com'" <Tristan.Pretty@risk.sungard.com>, php-general@lists.php.net cc: Subject: RE: [PHP] stripslashes, within a string? > -----Original Message----- > From: Tristan.Pretty@risk.sungard.com > [mailto:Tristan.Pretty@risk.sungard.com] > Sent: 08 May 2003 10:29 > To: php-general@lists.php.net > Subject: [PHP] stripslashes, within a string? > > > I wanna use a variable within a string. > But I need to strip slashes first. > > I've used this, but it fails...? > > $email = addslashes($email); // variable from a previous form > > //Add $email to database > > $body = "The following E-mail address: " . > stripslashes($email); . "Has > been recieved"; > > mail($mailto, $subject, $body); > > Line 3 give me an error... (Parse error: parse error.....) > > What monkey mistake am I making? You've got a superfluous semicolon after the stripslashes() call. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php *********************************************************************** The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. ************************************************************************

« previous php.general (#146814) next »