Jul 23rd, 2011, 2:53 PM
Hi cytegi,
Ah... I think the problem due to the slightly different way in which the API stores the submission info and how the submission info is passed via the query string for POST forms. That tutorial is for post forms, so even though most of it holds true for the API, you need to make a small tweak.
One thing that sticks out is this line:
I think you'll need to change that to:
The API adds a "form_tools_" prefix to the submission ID & form ID, since they're auto-generated and we don't want them conflicting with other form fields names.
You may need to do other tweaks too, but I'd start there. Also, if you run into more trouble, do a print_r($fields); on the receipt page to find out exactly what key-value pairs you have at your disposal.
Good luck!
- Ben
Ah... I think the problem due to the slightly different way in which the API stores the submission info and how the submission info is passed via the query string for POST forms. That tutorial is for post forms, so even though most of it holds true for the API, you need to make a small tweak.
One thing that sticks out is this line:
PHP Code:
if (isset($fields["submission_id"]) && isset($fields["unique_key"]))
I think you'll need to change that to:
PHP Code:
if (isset($fields["form_tools_submission_id"]) && isset($fields["unique_key"]))
The API adds a "form_tools_" prefix to the submission ID & form ID, since they're auto-generated and we don't want them conflicting with other form fields names.
You may need to do other tweaks too, but I'd start there. Also, if you run into more trouble, do a print_r($fields); on the receipt page to find out exactly what key-value pairs you have at your disposal.
Good luck!
- Ben