Mar 20th, 2010, 9:36 AM
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:
...or if you have $pp["mode"] set to "live" ($pp["mode"]= "live"
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");