Special Characters in HTML Forms
Posted: Tue Jul 15, 2003 9:00 am
I have a simple mail form in which I type the following into the mail message:
The "Iron Men" like Harry's dog.
I retrieve the message body with the following statement:
$Body = $_POST[ "frmBody" ];
When I display $Body, I obtain:
The \"Iron Men\" like Harry''s dog.
How can I eliminate the back slashes before the double quote and apostrophe characters? They appear to be inserted by the PHP form parameter parser. I am using PHP Version 4.3.1.
The "Iron Men" like Harry's dog.
I retrieve the message body with the following statement:
$Body = $_POST[ "frmBody" ];
When I display $Body, I obtain:
The \"Iron Men\" like Harry''s dog.
How can I eliminate the back slashes before the double quote and apostrophe characters? They appear to be inserted by the PHP form parameter parser. I am using PHP Version 4.3.1.