astralaaron Posted April 4, 2012 Share Posted April 4, 2012 I am having a problem with this... I have a form that submits to action="" (itself), it then checks the google recaptcha result and uses header('location: submit_data.php?variables=asd&variable2=fdasf'); to send the variables on to the next page. I was noticing that sometimes the header would not fireoff, and then I realized that it only happens when there is a (\r\n) new line within the textarea in my form. if you remove the new line from the textarea, the header() works. the only way I can think of is to replace the \r\n with some character that can be switched back to \r\n on the next page..? any better suggestions? Link to comment Share on other sites More sharing options...
astralaaron Posted April 4, 2012 Author Share Posted April 4, 2012 There is something magical about this forum...suddenly after posting I realize there is an obvious answer. urlencode($_POST['textareafield']); and it works Link to comment Share on other sites More sharing options...
boen_robot Posted April 5, 2012 Share Posted April 5, 2012 It's not just this forum. It's a "magical" psychology phenomenon. You just performed rubber duck debugging, with the forum as your rubber duck . Link to comment Share on other sites More sharing options...
astralaaron Posted April 5, 2012 Author Share Posted April 5, 2012 lol you are right.. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.