Hi, hab mir mal auf einer anderen Seite Codes für einen Passwortschutz gedownloadet und sie für meine Seite abgeändert, aber irgendwie will das nicht funktionieren:
Inhalt.php
pwd.php
index.html
die seite ist übrigens hier: http://iappload.funpic.de
Inhalt.php
PHP:
html>
<body>
<?php
$_Post['pass'];
include("pwd.php");
if ($passwort == "$pass")
{
echo "
<html>
<head>
<title>Der Login</title>
</head>
<body>
Das is der Inhalt.
</body>
</html>
";
}
else
{
echo "ACCESS DENIED";
}
?>
</body>
</html>
pwd.php
PHP:
<?php
$pass;
$passwort = "test";
?>
index.html
HTML:
<body>
<center>
<table border="3" valign="center" align="center">
<tr><td><font size="18" color="CC0033"><b>PASSWORD REQUIRED</b></font></td></tr>
<tr><td><form action="inhalt.php" method="post">
<table border=0>
<tr>
<tr>
<td><input type="passwort" name="$pass"></td>
<td><center><input type="submit" name="senden" value=Login></td>
</tr>
</table>
</tr></td>
</form>
</table>
</center>
die seite ist übrigens hier: http://iappload.funpic.de