Posts: 114
Threads: 42
Joined: Jan 2010
Reputation:
0
How does one get data to use on the confirmation page when using the API. I am particularly interested on the submission ID and one or two specific form fields.
Dave
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hi Filch,
Since you're using the API, you already have all the form information available on the confirmation page - right up until the point where sessions are emptied.
So, assuming the PHP at the top of your page looks something like this...
PHP Code:
<?php
require_once("path/to/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
You can then use the $fields variable to extract whatever information you want, like $fields["submission_id"].
Hope this helps -
Ben