Not all data are showing in target PHP script using send POST method

  • SportsForm
    Asked on April 23, 2016 at 1:11 PM

    Hello,

    I'm using Jotform for my business, there are some questions that I need help.

    1) I set a button to send POST data to another url, that url is setup in the Thank you page.

    I've debug the POST data to that url, but data is not enough, please see following screenshots and actual received data

    https://www.dropbox.com/s/2hm80u3dw5xg515/InputForm1.png?dl=0

    https://www.dropbox.com/s/o2ytx2roq3m9eun/InputForm2.png?dl=0

    https://www.dropbox.com/s/0gsarecwmqlsjdl/Post_Data.txt?dl=0

    All multiple fields POSTed data for 1st field only, the remaining fields are nothing.

    e.g: Player Name - Last Name, Player Address - City, Player Address - State/Province,...

    Could you please teach me how to POST all data?

     

    2) I want to write custom PHP code for a button, is it possible?

     

    3) I want to embed OAuth2 to a 3rd party API, using 3-Leg OAuth method (client side). Is it possible?

     

    4) I want to embed an iframe with dynamic url into jotform, is it possible?

     

    Thanks,

    SportsForms

  • Charlie
    Replied on April 23, 2016 at 2:29 PM

    You could try following this guide to check the direct PHP variable on your form fields: https://www.jotform.com/help/51-How-to-Post-Submission-Data-to-Thank-You-Page 

    Not all data are showing in target PHP script using send POST method Image 1 Screenshot 20

     

    On my screenshot above, it shows the PHP code that I can use when fetching the submission data on my PHP script.

    Make sure that there are no errors or typographical mistakes on your PHP script, you might be missing some semicolons or incorrect field names which is why some data are not showing in your end.

    Here's another guide about using send post data: https://www.jotform.com/help/213-Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page. However, that one uses a variable $answers for $_POST. But they should be the same with the one I shared above.

    For the other concerns you have, please refer to the following links:

    #2 question: https://www.jotform.com/answers/825088 

    #3 question: https://www.jotform.com/answers/825089 

    #4 question: https://www.jotform.com/answers/825090 

     

    We will address your other concerns there. Thank you.

  • SportsForm
    Replied on April 23, 2016 at 11:50 PM

    Thanks Charlie, it's very useful.

  • Mike_G JotForm Support
    Replied on April 24, 2016 at 1:30 AM

    On behalf of my colleague, Charlie, you are most welcome! Please feel free to contact us anytime if you have questions or if you need assistance. Thank you.