Hallo zusammen
Ich habe da ein Problem mit dem Login mit PHP.
Ich bekomme immer diesen Fehler:
Parse error: syntax error, unexpected '[', expecting T_PAAMAYIM_NEKUDOTAYIM in C:\Programme\xampp\xampp\htdocs\blub\login.php on line 2
__________________________HELP - HELP - HELP__________________________
Hier noch der Code:
PHP:
<?php
$user = $_POST['user'];
$pw = $_POST['pw'];
$aer1 = "aer1";
$aer1_pw = "user01";
if($user == $aer1 && $pw == $aer1_pw)
{
header("Location: ae1_p.php");
}
else
{
header("Location: false.php");
}
?>
Form:
<form action="login.php" method="post">
<table width="800" height="50">
<tr valign="middle">
<td>
<table align="center" valign="bottom">
<tr>
<td align="right">
Benutzername:
</td>
<td width=20>
</td>
<td>
<input type="text" name="user" size="15"></input>
</td>
</tr>
<tr>
<td align="right">
Passwort:
</td>
<td>
</td>
<td>
<input type="password" name="pw" size="15"></input>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center" valign="top">
<td>
<input type="submit" name="Knopf" value="Abschicken"></input>
</td>
</table>
</form>