POST data to Thank you page (jotform.com/show-post-data/) is not showing the Array data

  • Atbam
    Asked on February 22, 2016 at 4: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.

    im getting 

     

    Data Submitted:


    PHP Code:
    $_POST['submission_id'];
    $_POST['formID'];
    $_POST['ip'];
    $_POST['fullname']['0'];$_POST['fullname']['1'];
    $_POST['postcode'];
    $_POST['phonenumber'];
    $_POST['email5'];
    $_POST['age'];
    $_POST['cisrscscscard'];
    $_POST['cardexpiry'];
    $_POST['cardtype'];
    $_POST['copyfront11'];
    $_POST['copyrear'];

     

  • Mike
    Replied on February 22, 2016 at 6: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.

    POST data to Thank you page (jotform Screenshot 20

    Thank you.

  • Atbam
    Replied on February 22, 2016 at 7: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.

     

    Carl

  • Jan
    Replied on February 22, 2016 at 8:47 AM

    The Array data is not showing in the Post PHP code. It should look like this once submitted:

    POST data to Thank you page (jotform Screenshot 30

    However, if you click submit, here's what you'll get:

    POST data to Thank you page (jotform Screenshot 41

    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.

  • sciedou
    Replied on March 3, 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

  • Huberson
    Replied on March 3, 2016 at 1:15 PM

    To receive the posted data you need to change 'Send Post Data' to yes from the form preferences menu.

    POST data to Thank you page (jotform Screenshot 20

    Webhook can be used as an alternative to that. Also consider taking at this guide: How to Setup Webhook with JotForm 

     

    Thanks!

  • Atbam
    Replied on March 5, 2016 at 1: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 ?  

  • Jan
    Replied on March 5, 2016 at 2: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.

  • sciedou
    Replied on March 5, 2016 at 3: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.

  • Atbam
    Replied on March 6, 2016 at 3:32 AM

    Thank You

  • Elton Support Team Lead
    Replied on March 6, 2016 at 3: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.

    Example:

    POST data to Thank you page (jotform Screenshot 30

    POST data to Thank you page (jotform Screenshot 41

    Thanks!