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 Quote Link to comment 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. Quote Link to comment 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.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.