|
Getting rid of backslashes in email headers and text |
|
Issue:
Getting sentences in the text with backslashes "\". How to get rid of them?
How to solve:
The PHP server is adding the "\" character to every single quote and doble quote because is set at the server automatically by turning the "magic_quotes_gpc" to on.
Every GET or POST of any form to a PHP script will have automatically the "\" unless the "magic_quotes_gpc" are turned off again. (Most of the webservers are off).
For more info follow this link:
* Getting rid of "\" without turning of the magic quotes:
Change some lines in the script, they must look like this:
original: FTGName = $_POST['Name'];
modified by user: $FTGName = stripslashes($_POST['Name']);
Do the same process for each line you want to change.
|