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

  • Profile Image
    ninjas4christ
    Asked 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
    fxr
    Answered 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
    ninjas4christ
    Answered on November 05, 2011 at 01:59 AM

    This is great!  Thank you so much!

  • Profile Image
    campuszone
    Answered 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
    idarktech
    Answered 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
    campuszone
    Answered on September 10, 2012 at 03:15 PM

    no it is comig as Thankyou Array for signing up!

  • Profile Image
    NeilVicente
    Answered 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
    campuszone
    Answered on September 11, 2012 at 01:57 AM

    thankyou it's coming