Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start(); $username = $password = $userError = $passError = '';
- if(isset($_POST['sub'])){
- $username = $_POST['username']; $password = $_POST['password'];
- if($username !== 'Bobo' || $password !=="123")
- echo "gresit" ;
- else echo "corect";
- }
- echo "<html>
- <body>
- <form name='input' action='{$_SERVER['PHP_SELF']}' method='post'>
- <input type='text' value='$username' id='username' name='username' />
- <input type='password' value='$password' id='password' name='password' />
- <input type='submit' value='Home' name='sub' />
- </form>
- </body>
- </html>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement