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

    Getting submissions data from Webhooks to Arrays

    Asked by MarkPutt on February 27, 2014 at 12:59 PM

    Where can I find information on the array that a Webhook will create and send to a php page?

     

    Let me explain exactly what I'm doing.  I'm sending information to a php page.  I need to be able to inspect the webhooks array so I can access those elements.   I want to take certian items from the array, load them into variables then add them to an insert query.  This insert query will add the selected info to a MySQL database.   

    So, I need to be able to see the names, indexes etc... of all the memebers of the array.

    Using Fiddler is not much help.  The info in Fiddler does not reflect the structure of the array being sent by the jotform webhooks.

    create find and webhook
  • Profile Image
    JotForm Support

    Answered by TitusN on February 27, 2014 at 03:14 PM

    Hello,

    Thank you for contacting us.

    Please review our API documentation on WEbhooks and advice us where we can assist: http://api.jotform.com/docs/#post-form-id-webhooks

    Looking forward to your response.

  • Profile Image

    Answered by MarkPutt on February 27, 2014 at 04:37 PM

    I read this over and it's really no help.  This is completely out of context.  I just need to see the array being sent.  I don't have any desire or need to use the API.

  • Profile Image
    JotForm Support

    Answered by TitusN on February 27, 2014 at 04:48 PM

    My apologies. 

    We will update this thread as soon as possible. 

    Thank you for your patience. 

  • Profile Image
    JotForm Support

    Answered by Mike_T on February 27, 2014 at 05:10 PM

    We would like to recommend you to try a http://requestb.in/ service in order to inspect the data sent by webhook.

    The data is being sent in JSON format, so that you can use json_decode PHP function to get the array. We have some samples provided in the following article:

    Webhook Samples

    Note, the Post data option is also available, but it is a bit different from our Webhooks:

    How to Post Submission Data to Thank You Page

    Thank you.

  • Profile Image

    Answered by AmSteve on June 19, 2014 at 12:36 PM

    A quick followup to Mike's answer. Another page on the site: http://www.jotform.com/answers/378680-What-is-webhooks says what seems to be an opposite overview:

    Webhook is a technique used to send HTTP POST notifications to a URL. They can be used to connect apps together or just send data.

    So what's the diff between posting data and a webhook? Webhook = JSON?

    If hitting an endpoint at my server backed by an ASP.NET MVC controller, I think I'd be better of POSTing data becuase of how well MVC binds a form to an internal structure.