Re: re: variables with ""

From: Date: Mon, 17 Mar 2003 15:49:04 +0000
Subject: Re: re: variables with ""
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139970@lists.php.net to get a copy of this message
php has a function stripslashes() you could try using. - charles On Monday, March 17, 2003, at 10:11 AM, Ian A. Gray wrote:
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? Many thanks, Ian Gray ===== --------------------------------- Ian A. Gray Manchester, UK Telephone: +44 (0) 161 224 1635 - Fax: +44 (0) 870 135 0061 - Mobile: +44 (0) 7900 996 328 US Fax no.: 707-885-3582 E-mail: ian.gray@dunelm.org.uk - Websites: www.baritone.uk.com (performance) & www.vocalstudio.co.uk (Tuition) --------------------------------- __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#139970) next »