Hi, I want to have my Short Register Form's content go to the main registration page.
So like I type some information into a short register form like username and email but when I click the submit button I get transfered to another page which already has the information entered which was typed on the short register form.

My short registration form.

<form action="#" method="post">
                    <h1>Not a member yet? Sign Up!</h1>               
                    <label class="grey" for="signup">Username:</label>
                    <input class="field" type="text" name="signup" id="signup" value="" size="23" />
                    <label class="grey" for="email">Email:</label>
                    <input class="field" type="text" name="email" id="email" size="23" />
                    <label>A password will be e-mailed to you.</label>
                    <input type="submit" name="submit" value="Register" class="bt_register" />
                </form>

My full Registartion Form

<body>
<?php
/**
 * The user is already logged in, not allowed to register.
 */
if($session->logged_in){
   echo "<h1>Registered</h1>";
   echo "<p>We're sorry <b>$session->username</b>, but you've already registered. "
       ."<a href=\"main.php\">Main</a>.</p>";
}
/**
 * The user has submitted the registration form and the
 * results have been processed.
 */

    else if(isset($_SESSION['regsuccess'])){

    if ($_SESSION['regsuccess']==6){
      echo "<h1>Registration is currently disabled!</h1>";
      echo "<p>We're sorry <b>".$_SESSION['reguname']."</b> but registration to this site is currently disabled."
          ."<br>Please try again at a later time or contact the website owner.</p>";
    }
    /* Registration was successful */
    else if($_SESSION['regsuccess']==0 || $_SESSION['regsuccess']==5){
      echo "<h1>Registered!</h1>";
      echo "<p>Thank you <b>".$_SESSION['reguname']."</b>, your information has been added to the database, "
          ."you may now <a href=\"main.php\">log in</a>.</p>";
    }
    else if($_SESSION['regsuccess']==3){
      echo "<h1>Registered!</h1>";
      echo "<p>Thank you <b>".$_SESSION['reguname']."</b>, your account has been created. "
          ."However, this board requires account activation, an activation key has been sent to the e-mail address you provided. "
          ."Please check your e-mail for further information.</p>";
    }
    else if($_SESSION['regsuccess']==4){
      echo "<h1>Registered!</h1>";
      echo "<p>Thank you <b>".$_SESSION['reguname']."</b>, your account has been created. "
          ."However, this board requires account activation by an Admin. An e-mail has been sent to them and you will be informed "
          ."when your account has been activated.</p>";
   }
   /* Registration failed */
   else if ($_SESSION['regsuccess']==2){
      echo "<h1>Registration Failed</h1>";
      echo "<p>We're sorry, but an error has occurred and your registration for the username <b>".$_SESSION['reguname']."</b>, "
          ."could not be completed.<br>Please try again at a later time.</p>";
   }
   unset($_SESSION['regsuccess']);
   unset($_SESSION['reguname']);
   } 
    else if ((isset($_GET['mode'])) && ($_GET['mode'] == 'activate')) {
    $user = $_GET['user'];
    $actkey = $_GET['activatecode'];

    $sql = $database->connection->prepare("UPDATE ".TBL_USERS." SET USERLEVEL = '3' WHERE username=:user AND actkey=:actkey");
    $sql->bindParam(":user",$user);
    $sql->bindParam(":actkey",$actkey);
    $sql->execute();

    echo 'Your account is now activated.';
    // some warning if not successful
}
/**
 * The user has not filled out the registration form yet.
 * Below is the page with the sign-up form, the names
 * of the input fields are important and should not
 * be changed.
 */
else{
?>

<h1>Register</h1>
<?php
if($form->num_errors > 0){
   echo "<td style=\"color:#ff0000\">".$form->num_errors." error(s) found</td>";
}
?>
<form action="process.php" method="post">
<table align="left" border="0" cellspacing="0" cellpadding="3">
<tr>
    <td>Username:</td>
    <td><input type="text" name="user" value="<?php echo $form->value("user"); ?>" /></td>
    <td><?php echo $form->error("user"); ?></td>
</tr>
<tr>
    <td>Password:</td>
    <td><input type="password" name="pass" value="<?php echo $form->value("pass"); ?>" /></td>
    <td><?php echo $form->error("pass"); ?></td></tr>
<tr>
    <td>Confirm password:</td>
    <td><input type="password" name="conf_pass" value="<?php echo $form->value("conf_pass"); ?>" /></td>
    <td><?php echo $form->error("pass"); ?></td>
</tr>
<tr>
    <td>Email address:</td>
    <td><input type="text" name="email" value="<?php echo $form->value("email"); ?>" /></td>
    <td><?php echo $form->error("email"); ?></td>
</tr>
<tr>
    <td>Confirm email address:</td>
    <td><input type="text" name="conf_email" value="<?php echo $form->value("conf_email"); ?>" /></td>
    <td><?php echo $form->error("email"); ?></td>
</tr>
<?php 
if ($config['ENABLE_CAPTCHA']){
    echo "<tr><td colspan=\"2\"><div class=\"QapTcha\"></div></td></tr>";
}
?>
<tr><td colspan="2" align="right">
<input type="hidden" name="subjoin" value="1" />
<input type="submit" value="Register!" id="submit" /></td></tr>
<tr><td colspan="2" align="left">
    <?php echo "<a href=".$config['WEB_ROOT'].$config['home_page'].">Back to Home Page</a>"; ?>
</td></tr>
</table>
<!-- The following div tag displays a hidden form field in an attempt at tricking automated bots. -->
<div style='display:none; visibility:hidden;'><input type='text' name='killbill' maxlength='50' /></div>
</form>

<?php 
if ($config['ENABLE_CAPTCHA']){
?>
<!-- QapTcha and jQuery files -->
<script type="text/javascript" src="captcha/jquery/jquery.js"></script>
<script type="text/javascript" src="captcha/jquery/jquery-ui.js"></script>
<script type="text/javascript" src="captcha/jquery/jquery.ui.touch.js"></script>
<script type="text/javascript" src="captcha/jquery/QapTcha.jquery.js"></script>
<script type="text/javascript">
        $('.QapTcha').QapTcha({});
    </script>
<?php
}
}
?>

</body>

With out really looking over the code to much I would say you should look into cookies.
In PHP
In JavaScript

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.