<form action='target.php' method= 'get' >
<textarea name='newdata' cols='100%' rows='5'></textarea>
<input type='submit' value='Submit'>
</form>
Most text I enter into the text area can be used by php in the target page without any problems. But if I type the characters % or £ in the text area I get following the error message in target.php:
Not Acceptable
An appropriate representation of the requested resource /empty.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
...with % in the textarea the url reads target.php?newdata=%25 and with £ in the textarea the url reads target.php?newdata=%A3
I've looked at urlencode and htmlentities but how do I apply them to a text area before the form is submitted and the contents sent to the querystring?