How to Post Submission Data to get JSON array in C# or to my URL?

  • Profile Image
    JFUser01
    Asked on September 03, 2019 at 12:54 PM

    When I submit a form, I would like to get data, along with field names as properties, as JSON array.  This is quite universal data exchange format and can help your form users tremendously.  I have attached a file as an example.

    Also, can I get your PHP script that is called when a form is submitted so that I can translate it into .NET C# language and use my own URL (similart to your https://www.jotform.com/show-post-data/)?

    Thank you for your help.

    Screenshot
  • Profile Image
    roneet
    Answered on September 03, 2019 at 01:59 PM

    You can check these guides to post the submission data:

    Guide: https://www.jotform.com/help/213-Send-Submission-Data-via-Post-Method-and-Thank-You-Settings

    Guide: https://www.jotform.com/help/126-How-to-send-Submissions-to-Your-MySQL-Database-Using-PHP

    Let us know if you have further questions.

    Thanks.

  • Profile Image
    JFUser01
    Answered on September 03, 2019 at 03:55 PM

    Thank you Roneet.  So I get the impression that when I submit a jot form, you actually POST data to a web page specified on the Thank you page.  Does it have to be a PHP page?  We are a .NET shop, and all our web sites are .asp or .aspx page.

    I believe as long as you POST the data to the above specified URL (in my case .aspx page), I should be able to get that data.  Am I correct? Or it has to be PHP.  Because the HTTPRequest object, no matter PHP or .NET should be able to receive POST parametes in its content.

    If it has to be PHP, that will be really bad because we will not be able to install PHP libraries in our corporate environment.

    Please let me know if it can be any web page able to receive POST data.

    Thank you.

  • Profile Image
    EltonCris
    Answered on September 03, 2019 at 06:33 PM

    You can use this simple ASP script <% =Request.form %> to capture and print the form data in your thank you page.

    Example result:

    10282019_x6eXE2rNBU.png

    You can check this page for more references https://www.w3schools.com/asp/asp_inputforms.asp

  • Profile Image
    JFUser01
    Answered on September 04, 2019 at 04:05 PM

    Thank you guys for your help and pointer.  This is exactly what we were looking for.