Hi everyone.
I'm having a problem that seems simple but I'm not getting anywhere with it. I have one page that has a form with just an email address field, and after you submit that form, a popup comes up with more fields to fill in. One of those fields is the email address field that I want to be automatically filled with what was typed on the first page, so the user doesn't have to retype this.
I cannot get anything to work, and it seems so simple. Can someone please suggest something to me? I have posted my code with all the extra messy html taken out.
Thanks!
Page 1 (castcrew.php)
<?php session_start();
session_register ("emailaddy");
$HTTP_SESSION_VARS ["emailaddy"] = $emailaddy;
?>
<div id="emailform">
<form method="post" action="castcrew.php"/>
<input type='text' value="" name="email" />
<input type="submit" value="" class="button" onclick="wopen('mainsub.php', 'popup', 400, 375); return true;" onmouseover="this.className='button-over';" onmouseout="this.className='button';" />
</div>
Page 2 (mainsub.php)
<?php session_start();?>
<form method="post" action="mainsub.php" >
<p>
First name: <input type='text' value="" name="firstname" /><br /><br />
Last name: <input type='text' value="" name="lastname" /><br /><br />
E-Mail Address: <input type='text' value="<?PHP echo $emailaddy; ?>" name = "email" /><br /></p>
<br />
<input type='submit' value="Submit!" name="submit" /><br />
</form>