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

    How do I get the Unique ID field to appear in the Post Data?

    Asked by dmayhan on February 17, 2016 at 06:28 PM

    Right now, the post data looks like this but it is missing the data from my form widget unique id field {input48}. However the data does show on the submissions. How do I get the POST data to show the data?

    Data Submitted:


    PHP Code:
    $_POST['submission_id'];
    $_POST['formID'];
    $_POST['ip'];
    $_POST['organizationbusinessname'];
    $_POST['website'];
    $_POST['descriptionof'];
    $_POST['contactperson']['0'];$_POST['contactperson']['1'];$_POST['contactperson']['2'];
    $_POST['phonenumber38']['0'];$_POST['phonenumber38']['1'];
    $_POST['email39'];
    $_POST['address37']['0'];$_POST['address37']['1'];$_POST['address37']['2'];$_POST['address37']['3'];$_POST['address37']['4'];$_POST['address37']['5'];
    $_POST['pleasecheck']['0'];
    $_POST['placea']['0'];$_POST['placea']['1'];$_POST['placea']['2'];
    $_POST['input48'];
    $_POST['checkthis'];
    Page URL:
    https://form.jotform.com/52914465208962

    POST post data unique id unique
  • Profile Image
    JotForm Support

    Answered by Chriistian on February 18, 2016 at 03:32 AM

    I checked your code and it appears that the Unique ID field is already in the post data. The unique id field is sent as "$_POST['input48'];". Please see the highlighted text in the PHP code below.

    $_POST['submission_id'];

    $_POST['formID'];

    $_POST['ip'];

    $_POST['organizationbusinessname'];

    $_POST['website'];

    $_POST['descriptionof'];

    $_POST['contactperson']['0'];$_POST['contactperson']['1'];$_POST['contactperson']['2'];

    $_POST['phonenumber38']['0'];$_POST['phonenumber38']['1'];

    $_POST['email39'];

    $_POST['address37']['0'];$_POST['address37']['1'];$_POST['address37']['2'];$_POST['address37']['3'];$_POST['address37']['4'];$_POST['address37']['5'];

    $_POST['pleasecheck']['0'];

    $_POST['placea']['0'];$_POST['placea']['1'];$_POST['placea']['2'];

    $_POST['input48'];

    $_POST['checkthis'];

     

     

  • Profile Image

    Answered by dmayhan on March 06, 2016 at 01:24 AM

    But as you can see, the INPUT48 is blank where there should be data. Also notice the other auto complete data fields are blank as well: submission_id, formID, ip.

    Shouldn't all of thee fields show a result?

  • Profile Image
    JotForm Support

    Answered by Mike_G on March 06, 2016 at 11:39 AM

    I suppose what you're trying to do is found in this guide: Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page

    If I understand it correctly, $POST is a multidimensional array and it stores multiple values. 

     

    This $_POST['submission_id']; already holds the value of the submission ID and this $_POST['input48']; already holds the value of the Unique ID widget.

    This, $_POST['contactperson']['0'];$_POST['contactperson']['1'];$_POST['contactperson']['2'];, on the other hand, holds the value of the Prefix, First Name and Last Name of the Contact Person field in your form. [0], [1], and [2] are the indexes.

    I hope this answers your question. Let us know if you need any further assistance. Thank you.