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.
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.
Help
Thanks a lot.
But do this script work with PHP7?
Or are some changes to 'mysqli' necessary?
regards,
Sascha
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?
--------------------------12345
Content-Disposition: form-data; name="formID"
3456789
--------------------------12345
Content-Disposition: form-data; name="submissionID"
3456789
--------------------------12345
Content-Disposition: form-data; name="webhookURL"
url
--------------------------12345
Content-Disposition: form-data; name="ip"
0.0.0.0
--------------------------12345
Content-Disposition: form-data; name="formTitle"
Title
--------------------------12345
Content-Disposition: form-data; name="pretty"
data
--------------------------12345
Content-Disposition: form-data; name="username"
asdfghj
--------------------------12345
Content-Disposition: form-data; name="rawRequest"
{"slug":"submit\/\/","q13_dashboardUserID":"","q12_0":"@live.com","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"}
--------------------------12345
Content-Disposition: form-data; name="type"
WEB
--------------------------12345--
Hey Charmiequino, I would like to connect through linkedin.
Here's the link.
www.linkedin.com/in/karansql
transfer data from one form to another form after submit
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. ?
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:
Array
(
[submission_id] => 4318384528217938086
[formID] => 91123501164949
[ip] => 73.252.91.128
[namegroup] => Some Name
[email4] => john@example.com
[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:
$_POST['submission_id'];
$_POST['formID'];
$_POST['ip'];
$_POST['namegroup'];
$_POST['email4'];
$_POST['phonenumber5']['0'];$_POST['phonenumber5']['1'];
$_POST['fridayshift']['0'];$_POST['fridayshift']['1'];$_POST['fridayshift']['2'];$_POST['fridayshift']['3'];
$_POST['saturdayshift']['0'];$_POST['saturdayshift']['1'];$_POST['saturdayshift']['2'];$_POST['saturdayshift']['3'];
$_POST['sundayshift']['0'];$_POST['sundayshift']['1'];$_POST['sundayshift']['2'];
Is it possible to get the file attachments as well? if so, how?
regards
hi!
it is possible to autocomplete some info into a nother form viar URL?
something like this?
mythankyoupage.com/?name=?$_POST['name']
regards!
Hi,
I tried to send data to https://www.jotform.com/show-post-data/ but nothing happens.
I've a blank page :-(
What's the mistake?
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 https://www.paypal.com/xclick/business=payment%40samskritabharatiusa.org¤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?
Excellent! This helps me to create a really cool, custom Thank You page.
this giude was quite helpful
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.
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?
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
How can I create an electrical form that includes sending information and receiving a sequential number of the custom
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.
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 :/
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
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.
How do you create a database tables from your JotForm?
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
I can not get this function to work for any of my forms anymore. Why is that?
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.
This is a slick feature - thanks for implementing it. It would be nice to see non-php solutions for json perhaps? or iis?
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.
Will this use your forms submission slot?
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
Can the post data be sent in xml format?
now how do i add the php script to send the data to mysql
Can it pass the form data over https? (note the "s")
Same issue as ricky
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!
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
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.
hi
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
If my form is redirected to paypal for payment processing, will jetform execute my thank you page php program?
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?
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
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
hi,
someone can help me to post form result in new post in webspell ? ( cms forum )
thx
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!
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.
Can i use jotform to create login and signup fied and if posible how do i go about it
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.
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.
Is it possible to have the data sent to a list in awebber or mailchimp?
Thank you.
Ben