Pass hidden variable to form field on 2nd page?

by hseitz
2 replies
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.
#2nd #field #form #hidden #page #pass #variable
  • Profile picture of the author caesargus
    Originally Posted by hseitz View Post

    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.
    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>
    {{ DiscussionBoard.errors[2533210].message }}
    • Profile picture of the author hseitz
      GREAT!! That worked... I appreciate the quick reply.
      {{ DiscussionBoard.errors[2533431].message }}

Trending Topics