der komplette code:
line 10 ist:
ich hab kp...
wo fehlt da was?
PHP:
<?
session_start();
include 'mydata.inc.php';
if (isset($_POST['login']))
{
$userid=check_user($_POST['username'], $_POST['userpass']);
if ($userid!=false)
login($userid);
echo "<html>
<head><meta http-equiv="refresh" content="1; url=http://www.planethtml.de>
</head>
<body>
Sie werden automatisch weitergeleitet...
<br style="clear:both;>
</body>
</html>"
else
echo 'Username / Passwort falsch!';
}
if (!logged_in())
echo '<center><form method="post" action="login.php">
<label>Benutzername:</label><input name="username" type="text"><br>
<label>Passwort: </label><input name="userpass" type="password" id="userpass"><br>
<input name="login" type="submit" id="login" value="Einloggen">
</form>';
else
echo '<a href="logout.php">Ausloggen</a>';
echo 'Sie sind ';
if (!logged_in())
echo 'nicht ';
echo 'eingeloggt.<p/>';
?>
line 10 ist:
PHP:
<head><meta http-equiv="refresh" content="1; url=http://www.url.de>
ich hab kp...
wo fehlt da was?