PDA

View Full Version : Getting rid of \ from form submissions containing quotes


hofan41
08-27-2002, 02:55 AM
Here's my problem, my php script processes forms and outputs them in a txt file. however, whenever the form data has double quotes or single quotes, it is outputed with a \ in front of it. I know this is an escape command and is necessary..but how do i make it so that it doesnt output it onto the txt? Is there some sort of search/replace function in php as with perl?

Spookster
08-27-2002, 05:09 AM
PHP makes it quite easy:

http://www.php.net/manual/en/function.stripslashes.php