2 replies
Hello I am trying to create one single text field and once they click that submit button the value entered in the submit field will be added to the thank you page...


Example if they entered "Warrior Forum" then click submit the "warrior forum as the value in text field will be added to the thank-you page I have. (www.yourdomain.com/thank-you/Warrior%20Forum) or something that would make it like.

Because I will use the submitted value to display it to the next page.. I already had the code that make it possible to display the text after thank-you/ but I just don't know how to get that value added to a link.
#form
  • Profile picture of the author Brandon Tanner
    Assuming that the landing page's form method is set to "GET", and the form contains a text input named "firstname", then to display that value on the thankyou page, you would use...

    <?php echo $_GET['firstname']; ?>

    For example...

    <p>Hello <?php echo $_GET['firstname']; ?>, and thanks for visiting my website!</p>

    If your form's method is set to "POST" however, then you would do this instead...

    <?php echo $_POST['firstname']; ?>
    Signature

    {{ DiscussionBoard.errors[7493344].message }}
  • Profile picture of the author Valdor Kiebach
    You would need to use url rewriting in your htaccess file

    URL Rewriting Guide - Apache HTTP Server
    {{ DiscussionBoard.errors[7493421].message }}

Trending Topics