Mar 20th, 2010, 10:08 AM
(Mar 20th, 2010, 9:36 AM)Jaace Wrote: Hi Dave,Thanks for your reply. I tried setting it the way you have it in your first example and it still throws a 200 error. It is the way I would have thought it would work though. Unless it has something to do with not clearing the sessions first before I tested it. I added the following to my thanks page:
Not sure if you're using the Paypal enabled form functionality...but that's why I have the if-else statement on mine and pp["mode"]. In Ben's documentation of Paypal his demo files are set up like this so that you don't have to worry about changing that field except in the library.php file. It tests to see if it's in initialize mode (set up) and if so, executes that statement...if not (live mode) it goes to the else statement.
Short answer... I believe yours should read:
Code:$fields_10 = ft_api_init_form_page(10, "live", "form_tools_form_10");
...or if you have $pp["mode"] set to "live" ($pp["mode"]= "live"
Code:$fields_10 = ft_api_init_form_page(10, $pp["mode"], "form_tools_form_10");
Code:
require_once("/web/home/support/docs/assets/scripts/formtools/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions("form_tools_form_9");
ft_api_clear_form_sessions("form_tools_form_10");
but that did not seem to help.
Dave