The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
line breaks from textarea in html emails - 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: line breaks from textarea in html emails (/showthread.php?tid=256)



line breaks from textarea in html emails - zeniph - Aug 23rd, 2009

Hi there

firstly amazing piece of work, used version 1 a few times and this is even tighter.

The only issue I encountered was the line breaks in HTML emails from textarea fields being stripped out of my emails (using phpmail, smpt wasnt available).

Breaks we're still there on the backend when I browsed the submission. Field type was set as textarea.

I resolved the issue with my limited ability by changing line 1242 in global/code/emails.php to:
PHP Code:
$placeholders["ANSWER_$field_name"] = nl2br($field["content"]); 

i.e. added in the nl2br()

Seems to work fine for me but perhaps I've done something wrong or missed some other setting.

Maybe this is of assistance to someone else or perhaps its a minor bug

Again great piece of work.


RE: line breaks from textarea in html emails - Ben - Aug 24th, 2009

Hey Zeniph,

Thanks for this! Yes, this looks like a bug. HTML emails should definitely have newlines converted to page breaks.

I'm just putting together a list of bugs to work on for the next release; I'll be sure to include this one too. Thanks again!

- Ben


RE: line breaks from textarea in html emails - zeniph - Aug 24th, 2009

no thank you!

The same issue also seems to apply to the HTML/Print friendly popup window for printing off record sets.

The coding looks a little more complex (to me) in that area and I havent been able to resolve for myself as yet.

z


RE: line breaks from textarea in html emails - Ben - Aug 26th, 2009

Ooh - thanks. I've fixed the first problem locally, so that'll be in the next build. But I'll log your second issue (HTML/Printer-friendly popup) as a second issue.

Thanks!

- Ben


RE: line breaks from textarea in html emails - Marlee66 - Sep 21st, 2021

Hopefully, you second issue will be resolved soon as you have raised you keen issue here. Last weekend I also brought my problem here that was solved by the senior members of this forum who also shared this https://www.thelastamericanvagabond.com/sat-act-essay-writing-tests-optional-but-recommended-what-does-it-really-mean/ article with me to become a fine student.