2 page forms

February 11, 2009 at 06:05:14
Specs: Windows XP
I am trying to create a form with email address on homepage, click continue and have email pre-populated on screen 2 where the entire form resides?

See More: 2 page forms

Report •

February 13, 2009 at 12:22:18
Not sure if it's what you're asking, but here's a brief php example that *may* help. Post the code for what you're trying to do and someone will probably be able to offer more detail.

   if(isset($_POST["cmd"]) && $_POST["cmd"] === "Continue") {

      $email = $_POST["email"];
      echo "<form action='" . $_SERVER["PHP_SELF"] . "' method='post'>" .
        "Name <input name='name' type='text' maxlength='20'>" .
        "email <input name='email' value='$email' type='text' maxlength='20'>" .
        "<input name='cmd' value='submit' type='submit'>" . "</form>";
   } else if(isset($_POST["cmd"]) && $_POST["cmd"] === "submit") {

   } else {
<form action="<?php echo $_SERVER["PHP_SELF"];?>" method="post">
Email <input name="email" type="text" maxlength="20">
<input name="cmd" value="Continue" type="submit">


Report •
Related Solutions

Ask Question