The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Getting \r\n\r\n text sent in form results (representing line spaces) - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Getting \r\n\r\n text sent in form results (representing line spaces) (/showthread.php?tid=809) |
Getting \r\n\r\n text sent in form results (representing line spaces) - mossberg - Aug 16th, 2010 I'm using a comments field in one of my forms. If the person submitting the form happens to insert a couple line spaces (hard returns) in the text they enter in the comments field I will see a "\r\n\r\n" inserted in the form results that are both shown on screen after form submissions as well as in the e-mail confirmation that gets sent to the user upon form submission. Any idea how to fix this? Would be fine to just have the lines spaces removed upon submission. I just don't want to have to copy over the \r\n\r\n in the submitted form results. Thanks! RE: Getting \r\n\r\n text sent in form results (representing line spaces) - Ben - Aug 21st, 2010 Hi Mossberg, When you say "on screen" after the form submission, do you mean within the Form Tools UI or on your "thankyou" or "review" page? If the latter, do the newlines appear wonky within Form Tools as well? Could you try putting through a test that contains some apostrophes and double-quotes? I'd like to know if they're being escaped as well. Hmm... curious one! This shouldn't be happening on any system. Let me know! - Ben |