Configuring your "Thankyou" Page

This bit's easy. At the top of your thank you page (again, don't forget it has to be a PHP file), add the following code:

<?php
require_once("path/to/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>

Don't forget to update the path to the API file, just like with your form page.

Explanation of Code

This code does two main things. One, it returns all form values entered by the user in the $fields variable. You can use that variable to display information in the page, if you so need. Two, it closes sessions. The API stores information supplied by the users in "sessions" (temporary PHP storage) so that the information isn't lost as they go from page to page. To ensure that the next time the user returns to the form they don't see the old information, this page empties the sessions. Note: it's VERY important while you're setting up your form that sessions are cleared. Otherwise, the test values won't overridden and you'll never be able to finish setting up your form!

Edit Page