tommytx Posted February 18, 2008 Share Posted February 18, 2008 http%3A%2F%2Fmydomain1.com%2Fping3.php%0D%0Ahttp%3A%2F%2Fmydomain2.com%2Fping3.php%0D%0Ahttp%3A%2F%2Fmydomain3.com%2Fping2.php%0D%0A This is the $_Get from a form sent by a text area... How do I escape or unescape this to get the basic original data that was in the Here is the origina data before the form sent it to a php program that grabbed the data via $_GET <textarea> http://mydomain1.com/ping3.php http://mydomain2.com/ping3.php http://mydomain3.com/ping2.php </textarea> Thanks for any help. Tom Link to comment https://forums.phpfreaks.com/topic/91607-how-to-escape-or-unescape-the-data-from-a-php-form/ Share on other sites More sharing options...
Guest Posted February 18, 2008 Share Posted February 18, 2008 $rawdata = url_decode($_GET['textareafield']); $rawdata will then contain the text within the form field "textareafield" (replace it with the name of your textarea's field name), without all the url entities. Link to comment https://forums.phpfreaks.com/topic/91607-how-to-escape-or-unescape-the-data-from-a-php-form/#findComment-469229 Share on other sites More sharing options...
tommytx Posted February 18, 2008 Author Share Posted February 18, 2008 Thanks a bunch... worked great.... Small note.. for anyone else using this... I could not get it to work with the url_decode function, but when looking it up it appears it should be urldecode.... but you are the best... thanks..... problem solved... But what is a little _ here and there among friends.. Thanks again.... Link to comment https://forums.phpfreaks.com/topic/91607-how-to-escape-or-unescape-the-data-from-a-php-form/#findComment-469237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.