I have simple form posting to another file. The problem I’m having is with TEXTAREA field.
In the form TEXTAREA, I enter this:
<h1 class="padlock">Member Login</h1>
and the Output is on the other page when echo with PHP:
<h1 class=\"padlock\">Member Login</h1>
It’s automatically escaping characters. I’m displaying the output in another TEXTAREA box.
How can I make it be exactly the same?
Magic Quotes is on.
This is a deprecated feature of PHP. It was used to escape all incoming user data. You can use
stripslashes()to get the original data back:or to apply this to the entire $_POST array:
Note: the recursive function is used to support arrays in your post data.