JotForm User Guide / Advanced Features /

How to Post Submission Data to Thank You Page

How to Post Submission Data to Thank You Page

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. Click SETTINGS at the top.

2. Then FORM SETTINGS on the left nav.

3. Click the SHOW MORE OPTIONS button.

4. Scroll down until you see the SEND POST DATA section then set it to YES.

If you want to get your post data variables along with pre-formatted PHP codes, follow these steps:

1. Click SETTINGS at the top.

2. Then THANK YOU PAGE on the left.


4. Then paste the following URL:

Save your form and make a test submission. You should be able to see post data variables on your form thank you page along with the preformatted PHP codes.

Demo form:

Sample result:

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

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:
Contact JotForm Support:

Send Comment


See all comments
  • Omkar Kale

    Thank you for such valuable information.

  • devendramhedaoo

    It is taking too much time after submitting the data to get result,

  • brenda.rodriguez198550


  • saschabalik

    Thanks a lot.
    But do this script work with PHP7?
    Or are some changes to 'mysqli' necessary?


  • johan

    I am trying to use Sinatra (Ruby) to read the Jotform POST data.

    But All I get is the raw multipart data. Can anyone assist?

    Content-Disposition: form-data; name="formID"

    Content-Disposition: form-data; name="submissionID"

    Content-Disposition: form-data; name="webhookURL"

    Content-Disposition: form-data; name="ip"
    Content-Disposition: form-data; name="formTitle"

    Content-Disposition: form-data; name="pretty"

    Content-Disposition: form-data; name="username"

    Content-Disposition: form-data; name="rawRequest"

    {"slug":"submit\/\/","q13_dashboardUserID":"","q12_0":"","q15_dashboardMobile":"","q16_dashboardUsername":"","q17_dashboardGin":"","q3_1":"28 - 35","q4_2":"R20 000 - R30 000","q5_3":"Married","q6_4":"Yes","q7_5":"","q8_6":"software engineer","q9_7":"Yes","q10_8":"3","q11_9":{"area":"","phone":""},"preview":"true"}
    Content-Disposition: form-data; name="type"


  • karan.kp21

    Hey Charmiequino, I would like to connect through linkedin.
    Here's the link.

  • bijay jaiswal

    transfer data from one form to another form after submit

  • Happy1212

    How can i add a pie graph that takes values for four colors, each colour takes value from a hidden field that calculates average score of some suvey questions. ?

  • webflunky

    I have my POST data. Now what do I do with it? Are there instructions somewhere to get this into the Thank you page? Mine looks like this:

    Data Submitted:
    [submission_id] => 4318384528217938086
    [formID] => 91123501164949
    [ip] =>
    [namegroup] => Some Name
    [email4] =>
    [phonenumber5] => Array
    [0] => 312
    [1] => 312-4444

    [fridayshift] => Array
    [0] => 9:30AM - 12:30PM
    [1] => 12:30 - 3:30PM
    [2] => 3:30 - 6:30PM
    [3] => 6:30 - 9:30PM

    [saturdayshift] => Array
    [0] => 9:30AM - 12:30PM
    [1] => 12:30 - 3:30PM
    [2] => 3:30 - 6:30PM
    [3] => 6:30 - 9:30PM

    [sundayshift] => Array
    [0] => 9:30AM - 12:30PM
    [1] => 12:30 - 3:30PM
    [2] => 3:30 - 6:30PM


    PHP Code:

  • tempusmed

    Is it possible to get the file attachments as well? if so, how?


  • plannacional

    it is possible to autocomplete some info into a nother form viar URL?
    something like this?$_POST['name']


  • PMaeght


    I tried to send data to but nothing happens.
    I've a blank page :-(
    What's the mistake?

  • SBVA

    I was trying to use Redirect to External Link on the Thank you page do the following:
    1. Direct the page to a Paypal processing page that we use for organization.
    2. The link is standard and works well.
    3. However, I wanted to Insert the form variable called {TotalFee} into the URL¤cy_code=USD&amount=$_POST['TotalFee']&item_name=VA Balakendram Registration Fee.
    2. For some reason the link is not working because of this form variable. If I replace the form variable with a constant (e.g. amount=175) then the link works correctly.

    Can you tell me what was wrong?
    After that works I have another question.

    1. What I really want is once I redirect the user to Paypal External link, is there any way we can return back to the form with the "processing complete" message?

  • gen81465

    Excellent! This helps me to create a really cool, custom Thank You page.

  • michelle

    this giude was quite helpful

  • StretchStrength

    I submitted info one the Demo form:

    Then it takes me to an empty page:

    IÔÇÖd like to see a demo before I add it to my form.

  • emillo19525

    I want to put everything to my php Thank you page and post to JSON API.
    And i have problem with:
    a) put few fields in one, example:
    "name": "{$_POST['1_field', '2_field', '3_field']}",
    ? I already try with $_POST for each field and nothing.

    b) i have problem with fields like RANDOM NUMBER. I can post them to thank you page, why?

  • eridamega

    Please help me with this code, yo insert array

  • Noor

    How can I create an electrical form that includes sending information and receiving a sequential number of the custom

  • pavelgon

    Hey. If I have stopped on the item "Set Yes on Send Post Data". I chose "Yes". And I do not choose in the Thank You wizard, Redirect to an external link. How can I get POST data in this case?

    My form appears in the modal window. I want that gratitude would appear in the modal window too, but I would have to POST Data filled by the user.

  • Ciochu

    Hi, I did as you wrote "tur on POST data" but after that i get:

    "No Post Data Received. Make sure you enabled Send Post Data on your form. Then, try again."

    Please help :/

  • foodfunshop

    my post thank you page at

    is not receiving any data from my form at

  • virginiamontessoriassociation

    Just wondering if it is normal behavior for the jotform submission itself to hang on "Please wait while we are processing your request" after sending post data to a custom PHP page? If it helps, the user is then redirected with the header function to a real "Thank You" page at my website. What results is a new tab opening with my sites "Thank You" page and the Jotform submission tab hanging on the aforementioned message. This might be a bit disconcerting to users even though my Thank You page tells them we have received their submission.

  • researchpaperstobuy

    How do you create a database tables from your JotForm?

  • tojihi

    i have the ame problem in wordpress and i dont find any sulotion for it . its my conntact page in wordpress

  • peraunan

    I can not get this function to work for any of my forms anymore. Why is that?

  • cumonvideo

    Great I didn't know about this feature and works great. I don't use PHP (I use Tango) but any language that can pick up post arguments should be able to use it. Just be sure to sanatise the data for screen output or database input.

  • AmSteve

    This is a slick feature - thanks for implementing it. It would be nice to see non-php solutions for json perhaps? or iis?

  • dmayhan

    Hey guys, I think these instructions are seriously out of date!
    Try these steps instead:

    1. Go to MY FORMS, click your form, then select EDIT FORM.
    2. click THANK YOU from the menu ribbon, click CHANGE PAGE LINK (on the lower right of the preview screen)
    3. Copy and paste this link into that field:
    4. Click APPLY then close the THANK YOU preview
    5. Click PREFERENCES on the menu ribbon and select the ADVANCED SETTINGS tab.
    5. Click the box on the left titled SEND POST DATA.
    6. Change the setting to YES and click CLOSE SETTINGS at the bottom of the dialog.
    7. Click SAVE FORM on the menu ribbon.

  • maivutan

    Will this use your forms submission slot?

  • actors2014

    Im setting up a customer db on another server.

    Currently the user is redirected to Stripe for credit-card validation. What I want is a copy of the form data to be processed by my server, but only once Stripe has validated the user's credit card info.

    So my question is, does the redirect to the "Thank You" page occur AFTER credit card validation with Stripe or before? (IE as soon as Jot-form validates the form-data (which would be VERY bad practice IMHO!))?

    Cheers in advance

  • AssistAdmin

    Can the post data be sent in xml format?

  • geekp17

    now how do i add the php script to send the data to mysql

  • aluvion

    Can it pass the form data over https? (note the "s")

  • ardley216

    Same issue as ricky

  • rickykcl

    I have changed "send post data" to yes in preference but why it still shows:
    "No Post Data Received. Make sure you enabled Send Post Data on your form. Then, try again." after submitting? Please help, thank you very much!

  • Nedda

    Hi, great post

    whenever i submit my form data and redirects to the php page, i get this text:

    {\rtf1\ansi\ansicpg1252\cocoartf1265 {\fonttbl\f0\fnil\fcharset0 Menlo-Regular;} {\colortbl;\red255\green255\blue255;} \paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 \deftab720 \pard\pardeftab720 \f0\fs28 \cf0 \cb1 Array ( ) }

    how to fix?

  • chevva

    I am passing a 'returnURL' which contains a URL with various parameters (including a GUID) into a hidden field on my form. That works fine.

    Is there any way I can post data to that URL? The URL will be different every case (because of the GUID parameter). I don't really want a Thank You page as there may be a succession of forms or our applications own prompts.

  • galaxy9767


  • Barry Saunderson


    When I create a test.php file and submit the form it tells me that the page does not exist. Below is the custom url I put into the form instead of a thank you page.

    Any ideas?



  • davidfungf

    If my form is redirected to paypal for payment processing, will jetform execute my thank you page php program?

  • Brighter454

    Isn't there an easier way to do this without having to set up a database and use PHP?

    In other words, similar to the embed HTML used for the original form? An iframe?

  • campuszone

    for me its not getting,

    i redirected my page to

    my form id

    it is only shownig

    Thankyou for signing up

    in my editor also " Thankyou $firstname $surname for signing up!"; is showing in same colour means colour is not changing for $firstname and $surname

  • TonyAndNello

    In dumb terms, how do I add the submission date to the thank you page with a custom message. We don't have our own web hosting so we would like to use JotForm's thank you page to include the submission date.


    How do I get the Path to a uploaded file? It is not present in the $_POST array

  • shan_aya

    someone can help me to post form result in new post in webspell ? ( cms forum )

  • ninjas4christ

    Can someone give a quick, practical example on the code that needs to go on the test.php page. Just for the sake of the example, lets say I want it to read, "Thank you **NAME_FIELD** for signing up!" How would that look?

    Thanks so much!

  • nplescher

    You could do something like this...

    $business = $_POST['businessname'];
    $addyarray = $_POST['address5']; /* Array */
    $zip = $addyarray[4];
    $type = $_POST['typeof'];
    $state = $addyarray[3];

    Then, just echo the vars.

  • Ade

    Can i use jotform to create login and signup fied and if posible how do i go about it

  • kalenjian

    Hello is there a way to use $_REQUEST function in php to get form values. I am trying to do so but it's not picking up data.
    print_r($_POST) only gives an array and does not put data in variables that I can use to update DB. Please advise.