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



Form Tools
Thank You Page / Email Notify not working - 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: Thank You Page / Email Notify not working (/showthread.php?tid=1893)



Thank You Page / Email Notify not working - aeustudios - Feb 10th, 2012

My form works fine. I get the information in my account, however:

- After submitting form, the user is taken to the blank 'process.php' page and not the Thank You URL.

- I don't get an email notification.

Any ideas how to fix?

Thanks in advance,
Allen


RE: Thank You Page / Email Notify not working - Ben - Feb 11th, 2012

Hi Allen,

It's probably a syntax error in your email template. If there's anything even slightly out of whack, it'll throw an error and prevent redirecting to the Thankyou page. To confirm this, try temporarily disabling the email template then put through another submission.

If it's the email template, could you post the content here so we could look at it? (If it's not private info).

Thanks!

- Ben


RE: Thank You Page / Email Notify not working - aeustudios - Feb 11th, 2012

Yes, it was the email template. When I disabled it, the Thank You page shows up after submission.

Here's the content:

HTML:

<p>
There has been a submission made through your form, {$FORMNAME}:
</p>

<table cellpadding="0" cellspacing="1">
<tr>
<td style="font-weight: bold">ID</td>
<td>{$SUBMISSIONID}</td>
</tr>
<tr>
<td style="font-weight: bold">Name</td>
<td>{$ANSWER_Name}</td>
</tr>
<tr>
<td style="font-weight: bold">Email Address</td>
<td>{$ANSWER_Email_address}</td>
</tr>
<tr>
<td style="font-weight: bold">Budget </td>
<td>{$ANSWER_Budget_(up_to_$25_)}</td>
</tr>
<tr>
<td style="font-weight: bold">Service Your Are Requesting</td>
<td>{$ANSWER_Service_Your_Are_Requesting}</td>
</tr>
<tr>
<td style="font-weight: bold">Last modified</td>
<td>{$LASTMODIFIEDDATE}</td>
</tr>
<tr>
<td style="font-weight: bold">IP Address</td>
<td>{$IPADDRESS}</td>
</tr>
</table>

<p>
Submission made: {$SUBMISSIONDATE}
</p>


TEXT:

There has been a submission made through your form, {$FORMNAME}:

ID: {$SUBMISSIONID}
Name: {$ANSWER_Name}
Email Address: {$ANSWER_Email_address}
Budget : {$ANSWER_Budget_(up_to_$25_)}
Service Your Are Requesting: {$ANSWER_Service_Your_Are_Requesting}
Last modified: {$LASTMODIFIEDDATE}
IP Address: {$IPADDRESS}

Submission made: {$SUBMISSIONDATE}




RE: Thank You Page / Email Notify not working - Ben - Feb 11th, 2012

Ah! The problem is this placeholder: {$ANSWER_Budget_(up_to_$25_)}.

Placeholders are generated from the form field name attribute and can only contain the same permitted characters as valid name attributes. Name attributes are only permitted to have characters, numbers and underscore characters in order to be valid HTML. So what you'll need to do is update your form to remove the "(" and ")" and "$" from the field name. The label is fine: it's just the <input ... name="" /> bit that will need to change.

Once that's done, go to your Edit Form -> Fields tab and update the "field name" value to whatever you changed it to.

Lastly, re-edit your email template and change the placeholder name in both the HTML and text sections to this: {$ANSWER_zzzzzz} (where zzzzzz is the new field name).

Hope this helps! Let me know if I'm not clear on any of the steps.

- Ben