Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Handle the signup form
- $first_name = "";
- $last_name = "";
- $email = "";
- $password = "";
- $username = "";
- $password2 = "";
- if (isset($_POST['signupForm'])) {
- echo "<h1>Signup</h1>";
- echo "<p>The user has submitted the following details:</p>";
- $first_name = $_POST['firstName'];
- $last_name = $_POST['lastName'];
- $email = $_POST['emailAddress'];
- $password = $_POST['password1'];
- // Fill in what you need to do here for the signup form
- echo "<h2>First name is $first_name and last name is $last_name</h2>";
- echo "<h3>Email is $email and password is $password</h3>";
- // Handle the login form
- } else {
- echo "<h1>Login</h1>";
- echo "<p>The user has submitted the following details:</p>";
- $username = $_POST['username'];
- $password2 = $_POST['password'];
- echo "<h2>Username is $username and password is $password2</h2>";
- // Fill in what you need to do here for the login form
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement