> -----Original Message----- > From: Ian A. Gray [mailto:[EMAIL PROTECTED] > 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: [EMAIL PROTECTED] 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