ja du hast absolut Recht,
ich kann es mir auch nicht vorstellen,
hier lege ich mein Code:
Dies hat Dreamweaver ersrtellt!:)
vielleicht der Fehler in dem Abschnitt--
WHERE benutzer='%s' AND passwort='%s'", ?
-----------------------------------------------------------
<?php virtual('/Connections/login_tut.php'); ?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['benutzer'])) {
$loginUsername=$_POST['benutzer'];
$password=$_POST['passwort'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "/enter_login/member_index.php";
$MM_redirectLoginFailed = "/enter_login/members_loginerror.php";
$MM_redirecttoReferrer = true;
mysql_select_db($database_login_tut, $login_tut);
$LoginRS__query=sprintf("SELECT benutzer, passwort FROM benutzer WHERE benutzer='%s' AND passwort='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $login_tut) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && true) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>loginseite</title>
</head>
<body>
<form id="login_formular" name="login_formular" method="POST" action="<?php echo $loginFormAction; ?>">
<p>
<input name="benutzer" type="text" id="benutzer" />
Benutzername</p>
<p>
<input name="passwort" type="password" id="passwort" />
Passwort</p>
<p>
<input type="submit" name="Submit" value="login" />
</p>
<p> </p>
</form>
</body>
</html>
ich werde für jedliche Hilfe euch Dankbar
als Antwort auf: [#267969]