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
Two forms on the same page
#11
(Mar 20th, 2010, 9:36 AM)Jaace Wrote: Hi Dave,

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"Wink
Code:
$fields_10 = ft_api_init_form_page(10, $pp["mode"], "form_tools_form_10");
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:
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
Reply


Messages In This Thread
Two forms on the same page - by Jaace - Mar 1st, 2010, 9:25 PM
RE: Two forms on the same page - by martin_undefined - Mar 2nd, 2010, 4:18 PM
RE: Two forms on the same page - by Jaace - Mar 2nd, 2010, 4:21 PM
RE: Two forms on the same page - by Ben - Mar 7th, 2010, 10:51 AM
RE: Two forms on the same page - by Jaace - Mar 7th, 2010, 10:56 AM
RE: Two forms on the same page - by Ben - Mar 7th, 2010, 11:03 AM
RE: Two forms on the same page - by Jaace - Mar 10th, 2010, 6:00 AM
RE: Two forms on the same page - by filch - Mar 20th, 2010, 9:09 AM
RE: Two forms on the same page - by Jaace - Mar 20th, 2010, 9:36 AM
RE: Two forms on the same page - by filch - Mar 20th, 2010, 10:08 AM
RE: Two forms on the same page - by filch - Mar 20th, 2010, 1:32 PM
RE: Two forms on the same page - by Ben - Mar 11th, 2010, 9:32 PM
RE: Two forms on the same page - by filch - Mar 20th, 2010, 9:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)