Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //denk hier an den mysql-connect und die security.php aus physik ;)
- if(isset($_POST['submit']))
- {
- $cmd = 'SELECT * FROM logintabelle WHERE benutzername="'.$_POST['usr'].'" AND password="'.$_POST['pw'].'"';
- $query = mysql_query($cmd);
- if(mysql_num_rows($query)==0) die("Login falsch");
- else die("Login richtig");
- }
- else
- {
- echo '<form action="" method="post">
- <input type="text" name="usr" placeholder="Benutzername">
- <input type="password" name="pw" placeholder="passwort">
- <input type="submit" name="submit" value="Einloggen">';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement