Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elseif(!$_POST['username'] || $_POST['username'] == "") {
- echo 'Bitte einen Benutzernamen eingeben!<br><br><a href="index.php">Zurück</a>';
- }
- elseif(!$_POST['password'] || $_POST['password'] == "") {
- echo 'Bitte ein Passwort eingeben!<br><br><a href="index.php">Zurück</a>';
- }
- else {
- $password = md5($_POST['password']);
- $sql = mysql_query("SELECT * FROM user WHERE username = '".$_POST['username']."'");
- $result = mysql_fetch_array($sql) or die('Dieser Benutzername existiert nicht!<br><a href="index.php">Zurück</a>');
- if($password != $result['userpw']) {
- echo 'Bitte das korrekte Passwort eingeben!<br><br><a href="index.php">Zurück</a>';
- die;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement