- AtbamAsked on February 22, 2016 at 04:25 AM
The data being posted by JotForm is actually an array so to find out the array keys and values, you will have to try to insert this in your script:
print_r( $_POST ); ?>
where do i put this to find out my array.
- JotForm SupportMikeAnswered on February 22, 2016 at 06:36 AM
It looks like that the jotform.com/show-post-data/ option is not currently showing the array data. I have sent a ticket to our developers.
You can add the code into your PHP script to see the array data.
- AtbamAnswered on February 22, 2016 at 07:09 AM
i have put the php code in the top of the form but not working.
i haven't sent a ticket to our developers. dont know how to do that.
- JotForm SupportJanAnswered on February 22, 2016 at 08:47 AM
The Array data is not showing in the Post PHP code. It should look like this once submitted:
However, if you click submit, here's what you'll get:
My colleague Mike already escalated this issue to our developers. He already submitted a ticket. We'll let you know via this thread once an update is available.
Thank you for your patience.
- JotForm DevelopererhanAnswered on February 23, 2016 at 02:53 AM
First of all, we are sorry for the inconvenience. Send Post Data is an advance feature of JotForm, and it is used to get and process form data on your (owner of the form) servers.
Please check this guide first. After you enable Send Post Data option from Form Properties bar, and redirect Thank You page -let's say http://yourdomain.com/formdata.php- you can simply put print_r( $_POST ) into formdata.php (this is your file hosted on your servers) file to see what is posted from your form.
- sciedouAnswered on March 03, 2016 at 11:57 AM
is there a solution? my form doesn't pass any value to the show-post-data page nor to my PHP script
- AtbamAnswered on March 05, 2016 at 01:15 PM
can i ask ware do i put the php code
I have followed all your instructions (How to send Submissions to Your MySQL Database Using PHP)
is it in the thankyou redirect to page ?
- JotForm SupportJanAnswered on March 05, 2016 at 02:52 PM
You need to put the PHP code on a PHP file in your web server. After that, you need to setup your thank you page to redirect to a custom URL. The URL should be PHP file on your web server.
Related guide: How-to-send-Submissions-to-Your-MySQL-Database-Using-PHP
Hope that helps. Thank you.
- sciedouAnswered on March 05, 2016 at 03:39 PM
I found the issue.
It was actually the fact that I was naming variables in uppercase (ie: VARNAME) inside jotform, but they were passed to PHP in lowercase, so the PHP script couldnt read them.
- AtbamAnswered on March 06, 2016 at 03:32 AM
- JotForm SupportEltonCrisAnswered on March 06, 2016 at 03:47 AM
Glad to know that it's sorted out. The show post data page https://www.jotform.com/show-post-data/ should be working as well.
@sciedou, casing for the field variables should always be small on post data.