User Guide

 

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.

And 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.

3. Select REDIRECT TO EXTERNAL LINK option.

4. Then paste the following URL: https://www.jotform.com/show-post-data/

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: https://www.jotform.com/62301599849972

Sample result:

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

Send Comment

52 Comments...

See all comments
  • michelle

    this giude was quite helpful

  • StretchStrength

    Hello,
    I submitted info one the Demo form: https://www.jotform.com/62301599849972

    Then it takes me to an empty page: https://www.jotform.com/show-post-data/

    I’d like to see a demo before I add it to my form.

  • emillo19525

    Hello.
    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 https://www.jotform.com/answers/1176672-How-do-I-insert-multiple-checkbox-values-into-a-table

  • 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
    https://www.foodfunshop.com/jotforms/index.php?submit=1

    is not receiving any data from my form at
    https://form.jotform.me/70671438090456

  • 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 http://www.tojihi.com/contact

  • 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:
    http://www.jotform.com/show-post-data/
    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?
    Thanks

  • 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

    hi

  • Barry Saunderson

    Hi,

    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.

    http://www.gorillagambit.com/profile/ugg-league-players-and-teams/test.php

    Any ideas?

    Thanks

    Barry

  • 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 https://pres.herokuapp.com/test1.php

    my form id http://form.jotform.me/form/22531837069457



    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.

  • neilhard

    how direct connect a form to msql?

  • AMAPED

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

  • shan_aya

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

  • 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.

  • kalenjian

    Can I set the "field id" so that I know exactly what I am receiving on my server end? Right now, I have to either look at the source of the form or monitor from my server end to see the exact ids of the fields.

  • csweetbe

    Is it possible to have the data sent to a list in awebber or mailchimp?
    Thank you.
    Ben

  • aloeha

    I followed all the instructions but my result looks like:
    Array ( [submission_id] => 176036653174131631 [formID] => 11890036676 [ip] => 174.131.63.103 [fullname6] => Array ( [0] => Jim [1] => Seamans ) [address3] => Array ( [0] => 1234 5th St [1] => [2] => Ocala [3] => Fl [4] => 32686 [5] => United States ) [bedrooms] => 3 [clickto] => 064_lavewe_003.jpg )

  • oskamaya

    Is it possible, show a Thank you message in the same form without needing to go another blank page with just two lines of text?
    Thanks for your answer.

  • alyeg

    Thanks, this seems like it would be very useful but since I am not comfortable using php, I will settle by using Jotform's report pages.

    Thanks though.

  • JotFormSupport

    Click on "Preferences"
    Click on "Advanced Settings" tab
    You can change "send post data" to yes.

  • bclapper

    Step 3, enable 'Send Post Data', is nowhere that I can find.

  • mycity

    ok i´ve got the same idea later.. i can get the current date on my thank you page... thanks a lot

  • digilor

    Can I set the "field id" so that I know exactly what I am receiving on my server end? Right now, I have to either look at the source of the form or monitor from my server end to see the exact ids of the fields.

  • JotFormSupport

    Please do the things stated in user guide. You doın't need to receive the date. You can get the current date when you are processing the post data.

  • mycity

    Hi Team,
    great solution, great forms, great great great .. i begin love jotform ;)

    one question:
    i miss the "Submission Date" Value in the $_POST, why? any reason?

    Thanks
    Chris

  • abajan

    Oops! I included code in my post and it didn't show up. My bad.

    Okay, I was stating that it's better form for the PHP start tag to be "?php" than just "?".

  • abajan

    This is a very useful feature but