Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require "header.php";
- ?>
- <main>
- <div class="wrapper-main">
- <section class="section-default">
- <h1>Signup</h1>
- <?php
- if (isset($_GET['error'])) {
- if ($_GET['error'] == "emptyfields") {
- echo '<p class="signuperror">Fill in all fields!</p>';
- }
- else if ($_GET['error'] == "invaliduidmail") {
- echo '<p class="signuperror">Invalid username and e-mail</p>';
- }
- else if ($_GET['error'] == "invaliduid") {
- echo '<p class="signuperror">Invalid username</p>';
- }
- else if ($_GET['error'] == "invalidmail") {
- echo '<p class="signuperror">Invalid e-mail</p>';
- }
- else if ($_GET['error'] == "passwordcheck") {
- echo '<p class="signuperror">Your Passwords do not Match</p>';
- }
- else if ($_GET['error'] == "usertaken") {
- echo '<p class="signuperror">Username is already taken</p>';
- }
- }
- else if ($_GET['signup'] == "success") {
- echo '<p class="signupsuccess">Signup successful</p>';
- }
- ?>
- <form class="form-signup" action="model/signup.mod.php" method="post">
- <form action="model/signup.mod.php" method="post">
- <input type="text" name="uid" placeholder="Username">
- <input type="text" name="mail" placeholder="Mail">
- <input type="password" name="pwd" placeholder="Password">
- <input type="password" name="pwd-repeat" placeholder="Repeat Password">
- <button type="submit" name="signup-submit">Signup</button>
- </form>
- <?php
- if (isset($_GET["newpwd"])) {
- if ($_GET["newpwd"] == "passwordupdated") {
- echo '<p class="signupsuccess">Your Password has been reset!</p>';
- }
- }
- ?>
- <a class="p-forgetpwd" href="reset-password.php">Forgot Your Password?</a>
- </section>
- </div>
- </main>
- <?php
- require "footer.php";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement