I want to put everything to my php Thank you page and post to Json

  • Profile Image
    emillo19525
    Asked on August 26, 2017 at 03:38 PM

    Hello.

    I want to put everything to my php Thank you page and post to JSON API.

    And i have problem with:

    a) put few fields in one, example:

    {

    "name": "{$_POST['1_field', '2_field', '3_field']}",

    }

    ? I already try with $_POST for each field and nothing.

    b) i have problem with fields like RANDOM NUMBER. I can post them to thank you page, why?



    This is a re-post of a comment on How to Post Submission Data to Thank You Page

  • Profile Image
    jonathan
    Answered on August 26, 2017 at 05:38 PM

    I suggest using the test URL first https://www.jotform.com/show-post-data/ as the redirect page to get the correct variable names and PHP codes of your form.

    Also when you use the test URL you will see if Send Post data method is working properly if you get the results. If it has error/issue, you will not get the result.

    With this process you will be able to identify if it is just your PHP codes that have error or if Send Post data feature is the one actually broken.

    I hope this help. Let us know if you need further assistance.

     

     

     

     

  • Profile Image
    emillo19525
    Answered on August 26, 2017 at 05:59 PM

    I know everything from show-post-data and i already use those PHP values.

    I want to know how to enter in json/array values from 3 fields in to one, how to write this?

    Now i have something like this:

    {
    "ID": "{$_POST['ID_1']}-{$_POST['ID_2']}-{$_POST['ID_3']}"

    }

    but after i run script, i don't have all values. Like jotform don't sent all values.

  • Profile Image
    BDAVID
    Answered on August 26, 2017 at 09:35 PM

    I was searching in the web, and this my help you accomplish what you need: https://stackoverflow.com/questions/8238502/convert-post-array-to-json-format 

    Please note that this goes beyond our support scope, so we would recommend you to hire a front-end developer to accomplish what you need.