Hallo Forum,
ich habe ein Problem bei der Fertigstellung/Umsetzung von meiner Passwortabfrage. In der inhalt.php ist irgend ein Fehler, welchen ich leider nicht finden kann.
Vielleicht gibt es hier einen, welcher den Fehler finden könnte.
Hier die Dateien:
_____________________________________________________________________________________________________________________________________
login.html:
_____________________________________________________________________________________________________________________________________
<html>
<head>
<title>Admin Log in</title>
</head>
<body>
<form action="inhalt.php" method="post">
<center><font face="Lucida Sans" size="2"><b>GRIMOT RACING</b></font></center>
<center><font face="Arial" size="-5">Admin <i>Log in</i></font></center>
<table align=center border=0 cellspacing="3" cellpadding="2" frame="void">
<tr>
<th align="center" valign="top" rowspan="3"><img src="lock.png" width="75" height="75"></th>
<td><font face="Arial" size="2">Benutzer:</font></td>
<td><input type="text" name="user"></td>
</tr>
<tr>
<td><font face="Arial" size="2">Passwort:</font></td>
<td><input type="password" name="pass"></td>
</tr>
<tr>
<td></td>
<td align="right" valign="middle"><input type="submit" name="senden" value=Login></td>
</tr>
</table>
</form>
<br>
<center><font face="Arial" size="-5">copyright by GRIMOT RACING | [url]www.grimotracing.de[/url] | admininterface</font></center>
</body>
</html>
Alles anzeigen
________________________________________________________________________________________________________________________________
inhalt.php:
________________________________________________________________________________________________________________________________
<html>
<head>
<title>Admin Log in</title>
</head>
<body>
<?php
include("pwd.php");
if (($benutzer == "$user") and ($passwort == "$pass"))
{
echo "
<html>
<head>
<title>Admin</title>
</head>
<body>
Das is der Inhalt.
</body>
</html>
";
}
else
{
echo "Falsche Zugangsdaten. Bitte versuchen Sie es erneut!";
}
?>
</body>
</html>
Alles anzeigen
_______________________________________________________________________________________________________________________________________
pwd.php:
_______________________________________________________________________________________________________________________________________