Feb 26th, 2013, 5:52 PM
Hello all,
I am a current user of the older Form Tools v1 and have a test install that I am working on for v2. I made some modifications to the PayPal example given for v1 to allow me to use it on multiple forms among other things.
I downloaded Ben's latest PayPal demo and it mostly looks the same so I made my same changes and named the file process.php.
I added my test form to Form Tools and after initializing successfully, tried submitting a real submission. Instead, all I get is a blank page with just my page header (it's in include on my test form). The URL at the top is still my form page as well (instead of process.php). Amusingly, in the database the same submission (the second one) is getting rewritten each time I submit another test instead of continually adding new entries (if that makes sense).
Any ideas? Below is the formtools specific code I'm using...
I am a current user of the older Form Tools v1 and have a test install that I am working on for v2. I made some modifications to the PayPal example given for v1 to allow me to use it on multiple forms among other things.
I downloaded Ben's latest PayPal demo and it mostly looks the same so I made my same changes and named the file process.php.
I added my test form to Form Tools and after initializing successfully, tried submitting a real submission. Instead, all I get is a blank page with just my page header (it's in include on my test form). The URL at the top is still my form page as well (instead of process.php). Amusingly, in the database the same submission (the second one) is getting rewritten each time I submit another test instead of continually adding new entries (if that makes sense).
Any ideas? Below is the formtools specific code I'm using...
Code:
if (isset($mode))
{
$params = array(
"submit_button" => "submit",
"next_page" => "process/success.php",
"form_data" => $_POST,
"finalize" => true
);
}
else
{
$params = array(
"submit_button" => "submit",
"next_page" => "process/process.php",
"form_data" => $_POST
);
}
ft_api_process_form($params);