Advertisement
Guest User

index.php

a guest
Oct 16th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <?php
  2. require "header.php";
  3. ?>
  4.  
  5. <div class="w3-main">
  6. <div class="w3-row w3-padding-0">
  7. <div class="w3-twothird w3-container">
  8. <?php
  9. if (isset($_SESSION['userId'])) {
  10. header("Location: mylisttoday.php");
  11. }
  12. else {
  13. if (isset($_GET['error'])) {
  14. if ($_GET['error'] == "emptyfields") {
  15. echo '<p> Error: Input area cannot be empty</p>';
  16. }
  17. }
  18.  
  19. if (isset($_GET['error'])) {
  20. if ($_GET['error'] == "wrongpwd") {
  21. echo '<p> Error: Wrong password, try again </p>';
  22. }
  23. }
  24.  
  25. if (isset($_GET['error'])) {
  26. if ($_GET['error'] == "nouser") {
  27. echo '<p> Error: Email does not exist, try again </p>';
  28. }
  29. }
  30.  
  31. if (isset($_GET['signup'])) {
  32. if ($_GET['signup'] == "success") {
  33. echo '<p> Congratulations, thank you for registering </p>';
  34. }
  35. }
  36. }
  37.  
  38.  
  39. ?>
  40. </div>
  41. </div>
  42. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement