Aug 2nd, 2009, 10:56 AM
Hey Simplon,
Welcome to the forums! Sure, you can certainly do this.
The easiest way is with "direct" form submissions - posting you form to process.php. When you use that method, all you need to do is go to your Forms -> Fields tab and check the "Pass On" column for the Submission ID row. That will then pass along the new (unique) submission ID to your "thank you" page via the query string. You can access it in PHP like so:
If you're using the API, I *believe* it's that value is stored in the form_tools_submission_id key, which you can display like so:
However, $fields has to be the variable name that stores the return value from the ft_api_init_form_page() function. More info about the API can be found in the documentation and in some of the tutorials.
Let me know if you have any questions, or need any more pointers!
- Ben
Welcome to the forums! Sure, you can certainly do this.
The easiest way is with "direct" form submissions - posting you form to process.php. When you use that method, all you need to do is go to your Forms -> Fields tab and check the "Pass On" column for the Submission ID row. That will then pass along the new (unique) submission ID to your "thank you" page via the query string. You can access it in PHP like so:
PHP Code:
<?=$_GET["submission_id"]?>
If you're using the API, I *believe* it's that value is stored in the form_tools_submission_id key, which you can display like so:
PHP Code:
$fields["form_tools_submission_id"];
However, $fields has to be the variable name that stores the return value from the ft_api_init_form_page() function. More info about the API can be found in the documentation and in some of the tutorials.
Let me know if you have any questions, or need any more pointers!
- Ben