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 from Matrix Field

    Asked by gloera on July 25, 2011 at 12:59 PM

    Hi, I am posting the data in return through the thank you page but I am not getting the data correctly for Matrix field. It is showing values as "Array".

    My form is applied at:

    http://nooreiman.com/polyhigh/admin_resources/PayrollForm/Forms/Payroll.html

    Please fill it up and take a look at its result.

    Thanks

    Page URL:
    http://nooreiman.com/polyhigh/admin_resources/PayrollForm/Forms/Payrol<br/>l.html

    matrix POST post data
  • Profile Image
    JotForm Support

    Answered by abajan on July 25, 2011 at 09:38 PM

    Hi gloera

    I cloned your form and made a test submission to see the problem for myself and I did indeed see it. Perhaps this post may help you to resolve the issue but below is an alternative method that does not require Send Post Data to be enabled:

    1. Load the form into the form builder and while on the Setup & Embed tab, click Email Alerts

    2. Click one of the notifications

    3. Click inside the table containing the Questions and Answers, select all [Ctrl+A] of it and copy [Ctrl+C] it

    4. Close the notification and click the Thank You button, select Thank You message and click Next

    5. Paste [Ctrl+V] the table you copied into this message, click Finish and save the form

    Now run a test submission and see if the Thank You page is as you want it. Please let us know if you need additional assistance with this and we'll be glad to help.


    ~ Wayne

  • Profile Image

    Answered by gloera on July 26, 2011 at 07:29 AM

    Thank you! your solution is wonderful if I had to show it to the user. But my requirement is to get that data and save it in a local file/database for my workings.

    I have a php script which will do it but how can I get all the values correctly.

    Can you just send the whole post values in the post variable?

    Thanks

  • Profile Image
    JotForm Support

    Answered by liyam on July 26, 2011 at 11:14 AM

    Hello gloera,

    As stated by Wayne,  this post will answer your concern about getting your submissions to post to your own database via POST submission.

    Anyway, to explain:  The values being sent out as post data from jotform is in a form of array. So to find out the post variables being sent out to your custom thank you page, try using this code inside your page:

    <?php

    print_r($_POST);
    ?>

    or

    <?php
    var_dump($_POST);
    ?>

    Once you have placed that inside your custom thank-you php page, it will show something like this:

    Array ( [submission_id] => 174669162243212635
        [formID] => 11572124139
        [ip] => 55.55.555.55
    )

    Now to get the specific value of the variable:

    If for example you wish to get the submission id, the variable for that one would be $_POST['submission_id'];

    If you want to get the IP address, just get the [ip] and use the $_POST variable as well so you will have $_POST['ip'] and so on.  Now that you have the variables, feel free to use them for inserting to your own local database.

    If you need further assistance, please let us know.

    Thanks,

    Liyam

  • Profile Image

    Answered by khrisell on July 04, 2013 at 06:01 PM
    Greetings!

    We are happy to announce that we have released Jotform Webhooks,  this feature would replace Send Post Data + Custom URL Thank You Page workaround in order to help you transfer forms data to your own database using your own script codes.

    To know more about Jotform Webhooks, please click here.

     

    Thank you for using JotForm. :)