Pass hidden variable to form field on 2nd page?

by 2 replies
3
I'm trying to collect an email address on one page and then have it populate the email field on the 2nd page. I'm using PHP to create the pages.

To expand, when the person enters their email address on page 1, they are added to autoresponder A. They then go to page 2 and make a selection for additional information. Depending on which radio button they select, they are added to a new list and sent to the appropriate page.
#programming #2nd #field #form #hidden #page #pass #variable
  • If you are using PHP, use the following:
    Page 1:
    <form method="POST">
    <input type="text" name="email" value="" /> - the user puts their email address here
    </form>

    Page 2:
    <form method="POST">
    <input type="hidden" name="email" value="<?php echo $_POST['email']; ?>" />
    </form>
    • [1] reply
    • GREAT!! That worked... I appreciate the quick reply.

Next Topics on Trending Feed

  • 3

    I'm trying to collect an email address on one page and then have it populate the email field on the 2nd page. I'm using PHP to create the pages. To expand, when the person enters their email address on page 1, they are added to autoresponder A. They then go to page 2 and make a selection for additional information. Depending on which radio button they select, they are added to a new list and sent to the appropriate page.