Advertisement
Guest User

Untitled

a guest
Apr 6th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <?php
  2. // Handle the signup form
  3. $first_name = "";
  4. $last_name = "";
  5. $email = "";
  6. $password = "";
  7. $username = "";
  8. $password2 = "";
  9. if (isset($_POST['signupForm'])) {
  10. echo "<h1>Signup</h1>";
  11. echo "<p>The user has submitted the following details:</p>";
  12. $first_name = $_POST['firstName'];
  13. $last_name = $_POST['lastName'];
  14. $email = $_POST['emailAddress'];
  15. $password = $_POST['password1'];
  16. // Fill in what you need to do here for the signup form
  17. echo "<h2>First name is $first_name and last name is $last_name</h2>";
  18. echo "<h3>Email is $email and password is $password</h3>";
  19. // Handle the login form
  20. } else {
  21. echo "<h1>Login</h1>";
  22. echo "<p>The user has submitted the following details:</p>";
  23. $username = $_POST['username'];
  24. $password2 = $_POST['password'];
  25. echo "<h2>Username is $username and password is $password2</h2>";
  26. // Fill in what you need to do here for the login form
  27. }
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement