Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($DH_US->status == 'logged_in')
- {
- echo "You're logged in, there is no need for you to be accessing this webpage.";
- }
- else
- {
- if ($_POST)
- {
- $DH_US->register();
- if ($DH_US->errors)
- {
- foreach($DH_US->errors as $error)
- echo $error . "<br />";
- }
- else
- {
- echo "Registration Complete";
- }
- }
- else
- {
- ?>
- <h2>Register</h2>
- <form method='POST'>
- <label for='DH_US_username'>Username:</label>
- <input name='DH_US_username' type='input' />
- <label for='DH_US_password'>Password:</label>
- <input name='DH_US_password' type='password' />
- <label for='DH_US_email'>E-Mail:</label>
- <input name='DH_US_email' type='input' />
- <br />
- <input type='submit' value='Register' />
- </form>
- <?php
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement