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

    Post Data not working

    Asked by InspiredMedia on November 05, 2014 at 09:51 AM

    Hello,

     

    I have followed several directions and examples on your forum with no luck. Simple I am trying to POST  user submitted data from my form Post Test data to a custom Thank You Page. None of you examples clearly explain how to do this. Some say use web hook with I did but could not get my data to display and other say use Post Data on the form.

     

    I just tried the post data using one of your examples scripts:

     

    $answers = $_POST;

     $url1 = "http://investview.webinarprophet.net/posttest1/"; // This is the URL address of the custom web page

     

     $var1 = "?q1_name[first]=".urlencode($answers[q1_name][0]);

     $var2 = "&q9_name9[last]=".urlencode($answers[q9_name9][1]);

     $var3 = "&q3_email=".urlencode($answers[q3_email]);

     $var4 = "&q4_phone4=".urldecode($answers[q4_phone4]);

     $url2 = $url1.$var1.$var2.$var3.$var4;

     header("location:$url2");

     

    I have replaced the data with my fields and added the url to the custom thank you page. The script errors out saying too many redirects. This should be a very simple process. I am sure other paying subscribers are having similar issues.

    Page URL:
    http://form.jotformpro.com/form/42966701020953

    POST post data custom thank you scripts
  • Profile Image
    JotForm Support

    Answered by Kiran on November 05, 2014 at 11:21 AM

    I've cloned your JotForm and made some corrections to post data code. Please check the demo JotForm below if it works for you. Here I've printed the form values directly on the page.

    http://www.jotformpro.com/form/43084263576964

    You can see the code of the redirected/form values printed page here

    http://pastebin.com/grd5YTwj 

    Let us know if you need further assistance. We will be happy to help.