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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 137 forum_permissions
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
Warning [2] Undefined property: MyLanguage::$ratings_update_error - Line: 5 - File: showthread.php(732) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/showthread.php(732) : eval()'d code 5 errorHandler->error
/showthread.php 732 eval
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1506 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/showthread.php 1506 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 30 - File: showthread.php(1533) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/showthread.php(1533) : eval()'d code 30 errorHandler->error
/showthread.php 1533 eval
Warning [2] Undefined variable $addremovesubscription - Line: 79 - File: showthread.php(1533) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/showthread.php(1533) : eval()'d code 79 errorHandler->error
/showthread.php 1533 eval



FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text Template Results in All Entries on One Long Line
#1
Hi.

I have a Form Tools v.2.0.0 running and for the most part works great. However, the email that is sent out from the system to the site owner that informs him of a message comes in with all field entries in one long line.

In other words, within the received message, it looks something like:

Form Source: site First Name: John Last Name: Doe Address: 123 Main St...

...etc...

I would like each entry to appear on its own line. In the email's Text Template in the backend, I have the following template:

Code:
You have a form submission:  {$FORMNAME}:

ID: {$SUBMISSIONID}
{if $ANSWER_source}Form Source: {$ANSWER_source}
{/if}
{if $ANSWER_First_Name}First Name: {$ANSWER_First_Name}
{/if}
{if $ANSWER_Last_Name}Last Name: {$ANSWER_Last_Name}
{/if}
{if $ANSWER_How_Like_To_Receive_Information}How Like To Receive Information: {$ANSWER_How_Like_To_Receive_Information}
{/if}
{if $ANSWER_Company_Name}Company Name: {$ANSWER_Company_Name}
{/if}
{if $ANSWER_Street_Address}Street Address: {$ANSWER_Street_Address}
{/if}
{if $ANSWER_City_Town}City Town: {$ANSWER_City_Town}
{/if}
{if $ANSWER_State}State: {$ANSWER_State}
{/if}
{if $ANSWER_Zipcode}Zipcode: {$ANSWER_Zipcode}
{/if}
{if $ANSWER_Country}Country: {$ANSWER_Country}
{/if}
{if $ANSWER_Telephone}Telephone: {$ANSWER_Telephone}
{/if}
{if $ANSWER_electronic_mail}Electronic Mail: {$ANSWER_electronic_mail}
{/if}
{if $ANSWER_First_Heard_of_XXX_Through}First Heard Of XXX Through: {$ANSWER_First_Heard_of_XXX_Through}
{/if}
{if $ANSWER_Using_Machine_for}Using Machine for: {$ANSWER_Using_Machine_for}
{/if}
{if $ANSWER_Log_Splitters}Interested in: {$ANSWER_Log_Splitters}
{/if}
{if $ANSWER_Wood_Processors}Interested in: {$ANSWER_Wood_Processors}
{/if}
{if $ANSWER_Conveyors}Interested in: {$ANSWER_Conveyors}
{/if}
{if $ANSWER_Cords_Split_Per_Year}Cords Split Per Year: {$ANSWER_Cords_Split_Per_Year}
{/if}
{if $ANSWER_Comments}Comments: {$ANSWER_Comments}
{/if}
IP Address: {$IPADDRESS}
Submission made: {$SUBMISSIONDATE}

I tried adding break tags after each entry (right after each closing if tag) and it does make each entry appear on its own line as I desire, but the break tags also appear written within the incoming message.

Any way I can create these line breaks between each entry without the break tags showing up? Thank you in advance.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)