Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head />
- <body>
- <form action="/test/index.php" method=POST>
- Username: <input type="text" name="user">
- Password: <input type="password" name="pass">
- <input type="submit" value="Submit">
- </form>
- <?php
- $user=$_POST['user'];
- $pass=$_POST['pass'];
- $login=$_GET['login';
- if=($login=='yes');
- $con=mysql_connect('mysql6.000webhost.com','a2160349_login','domo11');
- mysql_select_db('a2160349_login');
- $get=mysql_query(SELECT count(id) FROM a2160349_login WHERE user='$user' and pass='$pass');
- $result=mysql_result($get, 0);
- mysql_close($con);
- if ($result=1) echo "Login FAIL";
- else(
- echo "Login WOOT!";
- $_SESSION['user']=$user;
- ?>
- </body>
- <html>
Add Comment
Please, Sign In to add comment