Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // define ISSET
- if (isset($_POST['submit']) {
- // define variables
- $username = $_POST['username'];
- $password = $_POST['password'];
- // if $username or $password EMPTY
- if (empty($username) || empty($password)) {
- die("Username or Password Field cannot be left Blank.");
- }
- // if $password does not equal "code"
- if ($password!="code") {
- die("You have entered an incorrect password.");
- }
- echo "You have connected successfully. Nice!";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement