How to Post Submission Data to Thank You Page

Last Update: October 10, 2016

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

Some Use Cases:

- Save form data to your 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 Preferences icon from the top menu on the form builder.

2. In the Preferences wizard, click the Advanced tab 

3. Click Show More button to show more options

4. Set Yes on Send Post Data


That's it!

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

   a. Click the Thank You icon while in the form builder


   b. In the Thank You wizard, select Redirect to an external link then enter this URL https://www.jotform.com/show-post-data/




  c. 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://form.jotform.com/62301599849972

Sample result:


We love to hear your experience with this feature, please feel free to leave a comment below. Thank you.


43 Comments...


   
Shuigen (October 10, 2010 at 02:27 AM)

Hi, how will it work?


   
aytekin (October 11, 2010 at 07:47 AM)

Shuigen: This is an advanced feature. To be able to use it you need to know programming with PHP or some other server side language. This basically posts the data entered on the form to the Thank You page on your own site where you can use server side programming to process the order on your own database.


   
abajan (January 17, 2011 at 04:08 AM)

This is a very useful feature but


   
abajan (January 17, 2011 at 04:12 AM)

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 "?".


   
mycity (March 13, 2011 at 10:45 AM)

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


   
JotFormSupport (March 14, 2011 at 08:05 AM)

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.


   
digilor (March 14, 2011 at 11:49 AM)

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.


   
mycity (March 14, 2011 at 06:05 PM)

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


   
bclapper (April 11, 2011 at 07:07 PM)

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


   
JotFormSupport (April 12, 2011 at 05:03 AM)

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


   
alyeg (April 30, 2011 at 06:49 PM)

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.


   
oskamaya (May 18, 2011 at 02:05 PM)

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.

View Answer


   
aloeha (July 09, 2011 at 12:06 PM)

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 )

View Answer


   
csweetbe (July 13, 2011 at 12:36 PM)

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

View Answer


   
kalenjian (August 16, 2011 at 01:48 AM)

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.

View Answer


   
kalenjian (August 16, 2011 at 01:57 AM)

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.

View Answer


   
Ade (October 01, 2011 at 06:45 PM)

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

View Answer


   
nplescher (October 25, 2011 at 12:18 AM)

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.


   
ninjas4christ (November 04, 2011 at 07:30 PM)

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!

View Answer


   
shan_aya (February 03, 2012 at 07:25 PM)

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

View Answer


   
AMAPED (February 11, 2012 at 04:33 PM)

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

View Answer


   
neilhard (June 19, 2012 at 01:43 AM)

how direct connect a form to msql?

View Answer


   
TonyAndNello (September 02, 2012 at 03:34 PM)

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.

View Answer


   
campuszone (September 10, 2012 at 06:38 AM)

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

View Answer


   
Brighter454 (November 01, 2012 at 07:48 PM)

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?

View Answer


   
davidfungf (March 10, 2013 at 12:46 AM)

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

View Answer


   
Barry Saunderson (August 11, 2013 at 05:34 PM)

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

View Answer


   
galaxy9767 (October 01, 2013 at 05:51 PM)

hi


   
chevva (December 05, 2013 at 11:26 AM)

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.

View Answer


   
Nedda (January 20, 2014 at 12:49 PM)

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

View Answer


   
rickykcl (October 26, 2014 at 10:44 PM)

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!

View Answer


   
ardley216 (November 05, 2014 at 05:42 AM)

Same issue as ricky

View Answer


   
aluvion (January 07, 2015 at 02:28 PM)

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

View Answer


   
geekp17 (February 15, 2015 at 08:50 AM)

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

View Answer


   
AssistAdmin (April 16, 2015 at 03:39 PM)

Can the post data be sent in xml format?

View Answer


   
actors2014 (September 09, 2015 at 10:07 AM)

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

View Answer


   
maivutan (October 24, 2015 at 02:59 PM)

Will this use your forms submission slot?

View Answer


   
dmayhan (November 06, 2015 at 09:07 AM)

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.

View Answer


   
AmSteve (March 13, 2016 at 05:17 PM)

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

View Answer


   
cumonvideo (March 28, 2016 at 08:38 AM)

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.


   
peraunan (August 14, 2016 at 04:19 PM)

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

View Answer


   
tojihi (August 24, 2016 at 11:32 PM)

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

View Answer


   
researchpaperstobuy (September 03, 2016 at 06:11 AM)

How do you create a database tables from your JotForm?

View Answer


Send Comment