RE: [PHP] re: variables with ""

From: Date: Mon, 17 Mar 2003 16:35:17 +0000
Subject: RE: [PHP] re: variables with ""
Groups: php.general 
Request: Send a blank email to php-general+get-139974@lists.php.net to get a copy of this message
> -----Original Message----- > From: Ian A. Gray [mailto:ian_a_gray@yahoo.co.uk] > Sent: 17 March 2003 15:11 > > > Using the \ or using single quotes instead of double > is great. However I am now finding a problem if > someone inputs either single or double quotes on a > form which uses php. > > The user inputs for example: > I\ve performed many roles including "Figaro", > "Dandini" and 'Wotan' > > becomes: > I\'ve performed many roles including \"Figaro\", > \"Dandini\" and \'Wotan\' > > Is there a simple way of getting rid of the annoying > backslash(\) from a the contents of a variable? http://uk2.php.net/stripslashes 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

« previous php.general (#139974) next »