okay... this is a toughy but i think i know what you can do. here is a sample registration form.. notice the form action
THIS WILL NOT BE A USEABLE SCRIPT WITHOUT NECESSARY CHANGES. ONLY USED AS DEMO.
<body>
<form action="registration.php" method="POST">
<input type="text" name="username" size="20">
<input type="password" name="password" size="20">
<input type="checkbox" name="more" value="mr">
<input type="submit" name="submit" value="Register">
</form>
</body>
THEN MAKE YOUR PHP SCRIPT
<?php
$more = "
PLACE SECOND FORM HERE WITH MORE OPTIONS
";
$contents = "
PLACE CONTENTS OF SECOND FORM INFORMATION INFO HERE! (e.g. Name: $name\n Email: $email\n)";
if(!more) {
echo("Thanks very much, you did not provide a more personal registration but that is okay. Here is what you submited to us:\n\n Username: $username\n Password: $password\n");
mail("your@email.com", "subject", "$username\n $password");
}
else {
echo($more);
mail("you@email.com", "subject", "$contents");
}
?>