Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Login</title>
- </head>
- <body>
- <form action="#" method="post">
- <h3>Login</h3>
- UserName:<input type="text" name="usrname" placeholder="Enter User Name"/>
- <br>
- Password:<input type="password" name="pswd" placeholder="Enter User Name"/><br>
- <input type="submit" value="Login"/>
- </form>
- <?php
- $user = $_POST['usrname']
- $upswd = $_POST['pswd']
- if ($user != "anmolx225")
- echo "<script>alert('Username is incorrect');</script>"
- if ($upswd != "Addidas")
- echo "<script>alert('Password is incorrect');</script>"
- if ($user == "anmolx225" && $upswd == "Addidas"){
- echo "<script>document.getElementById('one').style.display='none';</script>"
- echo "<p>Login Successfull</p>"
- ?>
Add Comment
Please, Sign In to add comment