How to Post Submission Data to Thank You Page

April 22, 2022

Send Post Data is a feature that allows you to post form data to your Thank You page.

Some use cases:

  • Save data to a MySQL Database using your own server-side script.
  • Display form data to your custom thank you page using a PHP script.
  • Pass form data to any 3rd party services that accept HTTP Post.

To post form data to your Thank You page, please follow these steps:

  1. Go to the Settings tab in the Form Builder.
  2. Click the Show More Options button.
form-builder-show-more-options-min.png
  1. Scroll down to the Send Post Data option, then set it to “Yes”.
form-builder-send-post-data-min.png
  1. Next, click Thank You Page on the left.
  2. Select the Redirect to an external link after submission option.
  3. Enter the destination URL.
form-builder-show-post-data-redirect-min.png

To get the POST data variables along with pre-formatted PHP codes, use the following as the destination URL:

https://www.jotform.com/show-post-data/

Send a test entry to your form, you should be able to see POST data variables along with the preformatted PHP codes. Here’s a demo form to see it in action: https://www.jotform.com/213185545698973

Sample result:

Data Submitted:
Array (     [submission_id] => 5264586364403223222     [formID] => 213185545698973     [ip] => 10.146.210.44     [name] => Array         (             [0] => Jane             [1] => Doe         )     [email] => jane.doe@jotform.com     [message] => Voluptatibus aut dolor tempora aute nostrum debiti. )
PHP Code:
$_POST['submission_id'];
$_POST['formID'];
$_POST['ip'];
$_POST['name']['0'];$_POST['name']['1'];
$_POST['email'];
$_POST['message'];

Comments and suggestions are welcome below. If you have a question, post it in our Support Forum so we can assist you.

Was this guide helpful?
Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments: