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

    How do I get matrix data by POST?

    Asked by bvc1311 on August 08, 2012 at 05:51 AM

    Good morning,

    I have the following form: http://form.jotformeu.com/form/22197951348361

    As you can see, that form have a matrix. The problem is that I can't get the data from the matrix by POST. I want to save the data in a database ordered by days.

    Best regards.

  • Profile Image
    JotForm Support

    Answered by NeilVicente on August 08, 2012 at 06:55 PM

    The values of a matrix table are passed as an array. Fill out this sample form to see how the matrix values are passed:


    For your reference, here is the source code for the PHP parser I used:


  • Profile Image

    Answered by bvc1311 on August 09, 2012 at 10:55 AM

    Thanks for your help NeilVicente, it worked!

  • Profile Image

    Answered by bvc1311 on August 10, 2012 at 12:29 PM

    Hello again,

    I have anoher question about this subject. In my form, I have the days in the left column. When I post the data from the matrix, the array positions are 0, 1, 2, etc.

    The problem is, I want those days to save them in the database. For example:

    Day 1 - Morning, Afternoon

    Day 20 - Evening

    I want the 1 and the 20. It's possible to get them?

    Best regards.

  • Profile Image

    Answered by johncausing on August 11, 2012 at 12:24 AM

    Hi. You can visit this link to insert form submission to the database: http://www.jotform.com/help/126-How-to-Insert-or-update-form-submissions-to-your-MySQL-database-using-PHP - I hope that helps.

  • Profile Image
    JotForm Support

    Answered by liyam on August 11, 2012 at 03:12 AM

    Hello bvc1311.  Upon testing, I see a problem in identifying the matrix data in the array.  I will inform the developers of this matter.  We'll keep you posted as soon as we get updates.

    Thanks for your patience.

  • Profile Image

    Answered by bvc1311 on August 14, 2012 at 07:30 AM

    johncausing, thanks for your help, but that topic don't have the answer to this question.


    Thanks liyam, I'm waiting. Hope you can fix that.

  • Profile Image
    JotForm Support

    Answered by Mike_T on August 14, 2012 at 05:38 PM


    Once we get any more information for you, we will let you know by updating this thread.

    Thank you for cooperation.