Why send post data is not working?

  • Profile Image
    vincentphilippe
    Asked on February 20, 2018 at 11:45 AM

    Hi Jotform,

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

    - I enabled the SEND POST DATA to Thank you page in the Setting of my form https://form.jotformeu.com/80502920077350

    - Then I add the following external link to my Thank You page : http://www.jotform.com/show-post-data

    - When filling my form and submit, the page is returning : "No Post Data Received. Make sure you enabled Send Post Data on your form. Then, try again."

    Can you explain where the error comes from ? (of course the Send Post Data is enabled)

    Thanks,

    vincent






  • Profile Image
    Sabbir
    Answered on February 20, 2018 at 12:21 PM

    You need to set an external link with a page extension of .php. It should be under your domain.

    Please refer to this image from the guide:

    2017-02-19_19.31.46.png

    So it should be something like https://www.yourdomainname.com/yourscriptname.php

    where yourdomainname = "YOUR DOMAIN"

    yourscriptname = "YOUR PHP SCRIPT NAME"

    In that script, paste the following code to get the field and value passes from the form:

    <?php

    print_r($_POST);

    ?>

    If you have any further query, please let us know.

  • Profile Image
    vincentphilippe
    Answered on February 22, 2018 at 05:41 AM

    Thank you.

    Is there anyway to retrieve easily all the name of field names included in SEND POST with a script or page ?

    Vincent

  • Profile Image
    Sabbir
    Answered on February 22, 2018 at 08:16 AM

    You can add the following code in your php page to retrieve the field name included in send post data.

    <?php

    $keys = array_keys($_POST);
    for($i=0; $i<sizeof($keys); $i++)
    {
        echo $keys[$i]."<br/>";
    }

    ?>

    To know more about getting the data from send post data, please refer to this guide:

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

    If you have any further query, please let us know.