2

I have a form that I am using to post a hidden input value that contains HTML. When I grab the posting Variable using $_POST it URL Encodes the data. This information is getting written to a file and needs to maintain its original values.

I have tried changing the enctype to enctype="multipart/form-data" and still no dice.

Essentially I am posting HTML that the user has edited in a hidden input then writing the modified content to a file on the server and need the original untainted content!

1 Answer 1

1

You might need to url decode that field before saving it, although it is supposed to decode automatically.

urldecode($string)

For more: http://php.net/manual/en/function.urldecode.php

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.