Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $verbindung = mysql_connect("localhost","root","test12345")or die ("MYSQL-Password falsch!");
- mysql_select_db(login, $verbindung)or die ("Deine Datenbank existiert nicht!");
- $username = mysql_real_escape_string($_POST['username']);
- $password = mysql_real_escape_string($_POST['password']);
- $query = mysql_query("SELECT * FROM users WHERE username = '".$username."' && password = '".$password."'");
- $row = mysql_fetch_assoc($query);
- ?>
- <html>
- <head>
- <title>Einloggen!</title>
- <div style="width: 100%; background-color: red; color: white; font-size: 24px;margin-top:-10px;margin-left:-10px;"><center><?php echo $login_error; ?></center></div>
- <style type="text/css">
- body {
- font-size:18px;
- font-familiy:century gothic;
- font-weight:small-caps;
- background-color:greey;
- text-align:center;
- }
- #button {
- margin-top:10px;
- font-size:18px;
- }
- </style>
- <form action="index.php" method="post">
- Benutzername:<br /><input type="text" name="username">
- <br />
- Password:<br /><input type="password" name="password">
- <br />
- <input type="submit" name="einloggen" value="Einloggen" style="width: 8%;margin-top:10px;border-radius:10px;font-size:18px;font-familiy:century gothic;"></center>
- <br />
- </html>
- </head>
- </form>
Add Comment
Please, Sign In to add comment