Hallo,
bitte wer kann mir wieder helfen, ich stehe an, ich habe drei scripts aus einem buch abgeschrieben, und die funktionieren nicht so wirklich, ich weiss aber auch nicht warum.
Er schreibt Error in Zeile 16, das ist die <body bgcolor"white">, was ist daran falsch ?
Hier der Quelltext:
<?php
if ($http_post_vars["user"]!="");
$c=$http_post_vars["user"];
$c.=md5($http_post_vars["pass"]);
setcookie("login", $c, 0, "/");
echo "<html><head>";
echo"<meta http-equiv=\"refresh\" ";
echo "content=\"0:url=cookie_login_main.php\">";
echo"</head><body></body></html>;
else:
?>
<html>
<head>
<title>Login</title>
</head>
<body bgcolor="white">
<form method="post">
Benutzername:
<input type="text" name="user"><br>
Passwort:
<input type="password" name="pass"><br>
<input type="submit" value="Login">
</form>
</body>
</html>
<?php
endif;
?>
Danke für Eure Hilfe
bitte wer kann mir wieder helfen, ich stehe an, ich habe drei scripts aus einem buch abgeschrieben, und die funktionieren nicht so wirklich, ich weiss aber auch nicht warum.
Er schreibt Error in Zeile 16, das ist die <body bgcolor"white">, was ist daran falsch ?
Hier der Quelltext:
<?php
if ($http_post_vars["user"]!="");
$c=$http_post_vars["user"];
$c.=md5($http_post_vars["pass"]);
setcookie("login", $c, 0, "/");
echo "<html><head>";
echo"<meta http-equiv=\"refresh\" ";
echo "content=\"0:url=cookie_login_main.php\">";
echo"</head><body></body></html>;
else:
?>
<html>
<head>
<title>Login</title>
</head>
<body bgcolor="white">
<form method="post">
Benutzername:
<input type="text" name="user"><br>
Passwort:
<input type="password" name="pass"><br>
<input type="submit" value="Login">
</form>
</body>
</html>
<?php
endif;
?>
Danke für Eure Hilfe
Kommentar