The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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 property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Thankyou page not displaying. blank page with url of original page - 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: Thankyou page not displaying. blank page with url of original page (/showthread.php?tid=1257)

Pages: 1 2


Thankyou page not displaying. blank page with url of original page - JMW - May 4th, 2011

Ok I have managed to get my form working and made a few test submissions/transactions.
Now when I want to go to the final "thankyou" page it just displays a blank page with the url of the same page showing. Hereis the code;

<?php

//$curr_folder = dirname(__FILE__);
require_once("/home/xxxxx/public_html/formtools/global/api/api.php");
$fields = ft_api_init_form_page();
$params = array(
"submit_button" => "add",
"next_page" => "camp_reg6.php",
"form_data" => $_POST,
"finalize" => true
"no_sessions_url" => "camp_reg1.php"
);
ft_api_process_form($params);

?>

And here is the code for the thankyou page;

<?php
require_once("/home/xxxxxx/public_html/formtools/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>

Now the user is returned to camp_reg5.php (the page prior to the thankyou page) from Authorize.nets payment portal page.
The transactions go through OK and the database is populated with the form information, but it just hangs and wont proceed to the next and final page which clears the session.

Then when I view the source code of that blank page this is what I get;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=SKYPE_FRAMEID content=UKSDOXEVME></HEAD>
<BODY></BODY></HTML>

Any ideas Ben, anybody?


RE: Thankyou page not displaying. blank page with url of original page - Ben - May 4th, 2011

Hi JMW,

Ah! I think it's just a little syntax error: make sure your "finalize" => true line has a comma at the end of it.

Hope that fixes it! Smile

- Ben



RE: Thankyou page not displaying. blank page with url of original page - JMW - May 5th, 2011

Thanks for the quick reply, Ben. Loving your product Smile

But sadly it's still not working Sad

Here is the entire code for that page, maybe it is in the form section?;
<?php
//$curr_folder = dirname(__FILE__);
require_once("/home/sciente2/public_html/formtools/global/api/api.php");
$fields = ft_api_init_form_page();
$params = array(
"submit_button" => "add",
"next_page" => "camp_reg6.php",
"form_data" => $_POST,
"finalize" => true,
//"no_sessions_url" => "camp_reg1.php"
);
ft_api_process_form($params);
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ScienTerrific Summer Camp Registration-Final Step</title>
<link href="styles.css" rel="stylesheet" type="text/css" />

</head>

<body>
<h1><img src="../images/weblogosm.png" width="400" height="75"> </h1>
<h1><span class="form_name">Summer Camp Registration Final Step</span> </h1>

<p>Now that you have entered all your information and payment has been processed let's finalize your registration.</p>
<p>Click the button below to upload your registration info.</p>
<form name="Summer_Camp_Reg" action="<?=$_SERVER['PHP_SELF']?>" method="post">
<input type="hidden" name="submission_id" value="<?=$_GET['id']?>"/>
<input type="submit" name="add" value="Finalize Registration" />
</form>
</body>
</html>



RE: Thankyou page not displaying. blank page with url of original page - crunchers - May 5th, 2011

You're missing an arguement:

PHP Code:
require_once("/home/sciente2/public_html/formtools/global/api/api.php");

$form_id 1// replace with integer corresponding to your particular form 

$fields ft_api_init_form_page($form_id);

$params = array(
    
"submit_button" => "add",
    
"next_page" => "camp_reg6.php",
    
"form_data" => $_POST,
    
"finalize" => true
    
);
ft_api_process_form($params); 





RE: Thankyou page not displaying. blank page with url of original page - JMW - May 5th, 2011

Thanks crunchers for the tip, but alas, that didn't fix the problem either.
Plus isn't the form id passed along to each new page anyway?


RE: Thankyou page not displaying. blank page with url of original page - crunchers - May 5th, 2011

Hmm...try changing the name of the form id variable to $pp['form_id']:

PHP Code:
require_once("/home/sciente2/public_html/formtools/global/api/api.php");

$fields ft_api_init_form_page($pp['form_id']);

$params = array(
    
"submit_button" => "add",
    
"next_page" => "camp_reg6.php",
    
"form_data" => $_POST,
    
"finalize" => true
    
);
ft_api_process_form($params); 

Going by the tutorial listed on the site, it's defined in your library.php includes file if I remember correctly.

Unless you have the form id declared in one of the form fields you're submitting, there's no way for FormTools to know which form to retrieve the data from on your return page.

Are the entries being submitted successfully into Formtools when you submit the form?



RE: Thankyou page not displaying. blank page with url of original page - crunchers - May 5th, 2011

Okay, I'm talking fluff!

The library file is included in the subsequent page that processes the payment; the entire $pp array (which includes the 'form_id') is merged with the main field array and stored as a session variable before you're sent to PayPal.

What you wrote should work.

Try changing the config file to instruct Formtools to store the session data in the database instead.


RE: Thankyou page not displaying. blank page with url of original page - JMW - May 5th, 2011

It is doing what it should up to the point of loading the final page. The payment is processed, e-mails are sent, info is uploaded to the database, it just refuses to advance to the final page which clears the session. I'm pretty sure that the session info is being saved ok because it populates the fields as you move through the form and if I exit the browser and then reload the form, it is populated with all the info from the previous attempt. Also I'm connected to Authorize.net, so the paypal settings don't do me much good, and as I said it goes through those steps fine.
This is driving me nutsSad


RE: Thankyou page not displaying. blank page with url of original page - crunchers - May 5th, 2011

Think I spotted the problem.

You need to include the library.php file in your thank you page. It contains your form settings. Without it, formtools doesn't know which form_id to reference.

That should do it.


RE: Thankyou page not displaying. blank page with url of original page - JMW - May 5th, 2011

Are you sure? My other one page form works flawlessly and has no code to include the library.php file, neither does Bens registration demo form which my registration form is modeled after, actually I used it and tweaked the areas I needed to.
Like you said earlier, according to everything I have read thus far, it should be working the way it is.
Could it be a problem in the action= portion of the form section of camp_reg5.php?

I really need to get this working, I hate to think I may be losing customers & $$$$ because of it. Once it is working and my bank account starts growing, then I can kick some cash Ben's way because I do love formtools and I'm sure the problem will end up being something simple, I hope.
Thanks for your suggestions crunchers. Where would you suggest I put the include statement?
Ben, I just noticed that in your registration demo the "finalize" => true line also doesn't have a comma after it, but it works fine.
Any other thoughts????