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

  • Profile Image
    dmayhan
    Asked 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'];
  • Profile Image
    Chriistian
    Answered 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
    dmayhan
    Answered 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
    Mike_G
    Answered 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.