Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drawRegistrationForm($errors = array()) {
- ?>
- <h1>New User Registration</h1>
- <h3>Once registered, you must confirm your email address. All fields are required.</h3>
- <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>?page=register&cmd=register" enctype="multipart/form-data">
- <fieldset>
- <?php echo hidden(); ?>
- <p class="left">
- <label for="firstname">First Name:</label>
- <input type="text" name="firstname" id="firstname" value="<?php echo isset($_POST['firstname']) ? format($_POST['firstname']) : ""; ?>" /> <?php echo jqHelp("Enter your first name here."); ?>
- </p>
- <?php if(@$errors['firstname']) { ?><p class="error">Please enter your first name</p><?php } ?>
- <p class="right">
- <label for="lastname">Last Name:</label>
- <input type="text" name="lastname" id="lastname" value="<?php echo isset($_POST['lastname']) ? format($_POST['lastname']) : ""; ?>" /> <?php echo jqHelp("Enter your last name here."); ?>
- </p>
- <?php if(@$errors['lastname']) { ?><p class="error">Please enter your last name</p><?php } ?>
- <p class="left">
- <label for="username">Username:</label>
- <input type="text" name="username" id="username" value="<?php echo isset($_POST['username']) ? format($_POST['username']) : ""; ?>" /> <?php echo jqHelp("Enter your username here.<br /><br /><strong>Note:</strong> Not case-sensitive"); ?>
- </p>
- <?php if(@$errors['username']) { ?><p class="error">Please enter your username</p><?php } ?>
- <p class="right">
- <label for="email">Email:</label>
- <input type="text" name="email" id="email" value="<?php echo isset($_POST['email']) ? format($_POST['email']) : ""; ?>" /> <?php echo jqHelp("Enter your email address here."); ?>
- </p>
- <?php if(@$errors['email']) { ?><p class="error">Please enter a valid email</p><?php } ?>
- <p class="left">
- <label for="password">Password:</label>
- <input type="password" name="password" id="password" value="<?php echo isset($_POST['password']) ? format($_POST['password']) : ""; ?>" /> <?php echo jqHelp("Enter your password here.<br /><br /><strong>Note:</strong> Passwords are CaSe-sEnSiTiVe!"); ?>
- </p>
- <?php if(@$errors['password']) { ?><p class="error">Please enter your password</p><?php } ?>
- <p class="right">
- <label for="confirm">Confirm:</label>
- <input type="password" name="confirm" id="confirm" value="<?php echo isset($_POST['confirm']) ? format($_POST['confirm']) : ""; ?>" /> <?php echo jqHelp("Confirm your password here.<br /><br /><strong>Note:</strong> Passwords are CaSe-sEnSiTiVe!"); ?>
- </p>
- <?php if(@$errors['confirm'] == 1) { ?><p class="error">Please confirm your password</p><?php } elseif(@$errors['confirm'] == 2) { ?><p class="error">Your passwords do not match</p><?php } ?>
- <p class="left">
- <label for="phone">Phone:</label>
- <input type="text" name="phone" id="phone" value="<?php echo isset($_POST['phone']) ? format($_POST['phone']) : ""; ?>" /> <?php echo jqHelp("Enter your primary phone number here."); ?>
- </p>
- <?php if(@$errors['phone']) { ?><p class="error">Please enter your phone</p><?php } ?>
- <p class="right">
- <label for="site">Site:</label>
- <input type="text" name="site" id="site" value="<?php echo isset($_POST['site']) ? format($_POST['site']) : ""; ?>" /> <?php echo jqHelp("Enter your site address here."); ?>
- </p>
- <?php if(@$errors['site']) { ?><p class="error">Please enter your site url</p><?php } ?>
- <p class="left">
- <label for="captcha">Captcha:</label>
- <input type="text" name="captcha" id="captcha" value="" /> <?php echo jqHelp("Enter the captcha code seen below.<br /><br /><strong>Note:</strong> Click the captcha code for a new captcha."); ?>
- </p>
- <p class="right">
- <label for="captcha"> </label>
- <img src="captcha.php" alt="Captcha" title="Captcha" class="captcha" width="205" height="35" /> <?php echo jqHelp("Enter this captcha code above.<br /><br /><strong>Note:</strong> Click the captcha code for a new captcha."); ?>
- </p>
- <?php if(@$errors['captcha']) { ?><p class="error">Invalid Captcha code</p><?php } ?>
- <p class="left">
- <label for="captcha"> </label>
- <input type="submit" value="Register" class="submit" />
- </p>
- </fieldset>
- </form>
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement