What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

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

    Asked by Atbam 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.

    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'];

     

    http post data array send post data thank you page show post data array data
  • Profile Image
    JotForm Support

    Answered by Mike 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.

    Thank you.

  • Profile Image

    Answered by Atbam 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.

     

    Carl

  • Profile Image
    JotForm Support

    Answered by Jan 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.

  • Profile Image
    JotForm Developer

    Answered by erhan on February 23, 2016 at 02:53 AM

    Hi,

    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. 

    Best.

  • Profile Image

    Answered by sciedou 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

  • Profile Image

    Answered by Huberson on March 03, 2016 at 01:15 PM

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

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

     

    Thanks!

  • Profile Image

    Answered by Atbam 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 ?  

  • Profile Image
    JotForm Support

    Answered by Jan 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.

  • Profile Image

    Answered by sciedou 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.

  • Profile Image

    Answered by Atbam on March 06, 2016 at 03:32 AM

    Thank You

  • Profile Image
    JotForm Support

    Answered by EltonCris 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.

    Example:

    Thanks!