here is the code
<body> <?php # Script 3.13 - register.php $page_title = 'Register'; include ('./includes/header.html'); if (isset($_POST['submitted'])) { $errors = array(); if (empty($_POST['name'])) { $errors[] = 'You forgot to enter your name.'; } if (empty($_POST['email'])) { $errors[] = 'You forgot to enter your email address.'; } if (!empty($_POST['password1'])) { if ($_POST['password1'] != $_POST ['password2']) { $errors[] = 'Your password did not match the confirmed password.'; } } else { $errors[] = 'You forgot to enter your password.'; } if (empty($errors)) { $body = "Thank you for registering with our site!\nYour password is '{$_POST['password1']}'. \n\nSincerely,\nUs"; mail ($_POST['email'], 'Thank you for registering!', $body, 'From: [email protected]'); echo '<h1 id="mainhead">Thank you!</h1> <p>You are now registered. An email has been sent to your email address confirming the information.</p><p><br /></p>'; } else { echo '<h1 id="mainhead">Error!</h1> <p class="error">The following error(s) occurred:<br />'; foreach ($errors as $msg) { echo " - $msg<br />\n"; } echo '</p><p>Please go back and try again.</p><p><br /></p>'; } }else { ?> <h2>Register</h2> <form action="register.php" method="post"> <p>Name: <input name="name" size="20" maxlength="40" type="text"></p> <p>Email Address: <input name="email" size="20" maxlength="40" type="text"> </p> <p>Password: <input name="password1" size="10" maxlength="20" type="password"></p> <p>Confirm Password: <input name="password2" size="10" maxlength="20" type="password"></p> <p><input name="submit" value="Register" type="submit"></p> <input name="submitted" value="TRUE" type="hidden"> </form> <?php } include ('./includes/footer.html'); ?>and here is a screen shot of what it looks like in my FF browser, Until i get this resolved I can't check the the database connectivity end of it.
Edited by Dragon, 04 December 2005 - 09:43 PM.