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

    Can someone give a quick, practical example on the code that needs to g

    Asked by ninjas4christ on November 04, 2011 at 08:48 PM

    Can someone give a quick, practical example on the code that needs to go on the test.php page. Just for the sake of the example, lets say I want it to read, "Thank you **NAME_FIELD** for signing up!" How would that look?

    Thanks so much!



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

  • Profile Image

    Answered by fxr on November 04, 2011 at 09:07 PM

    Here is my basic form with a Full Name field.

    http://www.jotform.com/form/13075123380

    I editted the test.php in the example to add a

    "Thank You, first name surname for signing up!" message. 

    The php for this is: http://pastie.org/2813023

    You can remove the print_r($_POST); line, its just to show the variable names that are available to you having been past from JotForm to your custom thankyou page.

     

  • Profile Image

    Answered by ninjas4christ on November 05, 2011 at 01:59 AM

    This is great!  Thank you so much!

  • Profile Image

    Answered by campuszone on September 10, 2012 at 06:37 AM

    for me its not getting,

     

    i redirected my page to https://pres.herokuapp.com/test1.php

    my form id http://form.jotform.me/form/22531837069457

     

    <?php

    print_r($_POST);

    $firstname = $_POST[fullname][0];

    $surname = $_POST[fullname][1];

    print "<p><p>";

    print " Thankyou $firstname $surname for signing up!";

    ?>

    it is only shownig

    Thankyou for signing up

    in my editor also " Thankyou $firstname $surname for signing up!"; is showing in same colour means colour is not changing for $firstname and $surname
  • Profile Image
    JotForm Support

    Answered by idarktech on September 10, 2012 at 08:07 AM

    Hi,

    Please replace your [fullname] to [fullname10] that should work. [fullname10] is actually the name of your fullname field. You can view it on the result. Example:

    Array ( [submission_id] => 213087863874118571 [formID] => 22533657838463 [ip] => 121.54.47.8 [fullname10] => Array ( [0] => JotForm [1] => Builder ) )

    Hope this helps. Thanks!

  • Profile Image

    Answered by campuszone on September 10, 2012 at 03:15 PM

    no it is comig as Thankyou Array for signing up!

  • Profile Image
    JotForm Support

    Answered by NeilVicente on September 10, 2012 at 03:30 PM

    @campuszone

    Use this instead:

    <?

    print_r($_POST);

    $fullname = $_POST[fullname10];

    print "<p><p>";

    print " Thankyou $fullname[0] $fullname[1] for signing up!";

    ?>

  • Profile Image

    Answered by campuszone on September 11, 2012 at 01:57 AM

    thankyou it's coming