Wie kann ich ein Login-script in den layer auf am rechten unteren Teil derSeite einbinden? Wie man siehrt hab ich es schon versucht, hat aber nicht gefunzt.
Hab das script irgendwo runtergeladen, ich glaube aber nicht das das was getaugt hat. Könnt ihr mir eines empfehlen?Sorry, aber selber coden kann ich so was noch nicht, bin aber beim php lernen^^
Im folgenden der Quelltext der Seite:
<html>
<head>
<title>Unbenanntes Dokument</title>
<link rel="stylesheet" href="style.css" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body scroll="auto">
<div id="Layer1" style="position:absolute; width:900px; height:640px; z-index:1; left: 69px; top: 65px; overflow: auto;"><?php include("./corenews2/shownews.php"); ?></div>
<div id="Layer2" style="position:absolute; width:486px; height:27px; z-index:2; left: 272px; top: 720px;">
<div align="center"><a href="#">[ HOME ]</a> - <a href="#">[MEMBERS ]</a> -
<a href="index2.php">[ FORUM ]</a> - <a href="#">[ INTERN ]</a></div>
</div>
<div id="Layer3" style="position:absolute; width:97px; height:92px; z-index:3; left: 871px; top: 628px;">
<?
require_once('login.obj.php');
session_start();
$login = new c_login(0);
$login->checkRights=0;
if(!$login->check($_POST[login],$_POST[pwd]) && $_POST[check])
echo "falsches Passwort oder so...<p />";
echo "Passwort eingeben:<br>";
echo "<form action=$PHP_SELF method=post>";
echo "<input type=text name=login>";
echo "<br> <input type=password name=pwd>";
echo "<br> <input type=submit name=check>";
echo "</form>";
?>
</div>
<table width="100%" height="100%" border="0">
<tr>
<td align="left" valign="top"><img src="pics/bg4.jpg" width="1028" height="768"></td>
</tr>
</table>
</body>
</html>
Ich vermute aber, dass ich das nicht verstanden habe, wie man das Ding richtig verwendet. Hmm hat einer verstanden was ich will?
Hab das script irgendwo runtergeladen, ich glaube aber nicht das das was getaugt hat. Könnt ihr mir eines empfehlen?Sorry, aber selber coden kann ich so was noch nicht, bin aber beim php lernen^^
Im folgenden der Quelltext der Seite:
<html>
<head>
<title>Unbenanntes Dokument</title>
<link rel="stylesheet" href="style.css" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body scroll="auto">
<div id="Layer1" style="position:absolute; width:900px; height:640px; z-index:1; left: 69px; top: 65px; overflow: auto;"><?php include("./corenews2/shownews.php"); ?></div>
<div id="Layer2" style="position:absolute; width:486px; height:27px; z-index:2; left: 272px; top: 720px;">
<div align="center"><a href="#">[ HOME ]</a> - <a href="#">[MEMBERS ]</a> -
<a href="index2.php">[ FORUM ]</a> - <a href="#">[ INTERN ]</a></div>
</div>
<div id="Layer3" style="position:absolute; width:97px; height:92px; z-index:3; left: 871px; top: 628px;">
<?
require_once('login.obj.php');
session_start();
$login = new c_login(0);
$login->checkRights=0;
if(!$login->check($_POST[login],$_POST[pwd]) && $_POST[check])
echo "falsches Passwort oder so...<p />";
echo "Passwort eingeben:<br>";
echo "<form action=$PHP_SELF method=post>";
echo "<input type=text name=login>";
echo "<br> <input type=password name=pwd>";
echo "<br> <input type=submit name=check>";
echo "</form>";
?>
</div>
<table width="100%" height="100%" border="0">
<tr>
<td align="left" valign="top"><img src="pics/bg4.jpg" width="1028" height="768"></td>
</tr>
</table>
</body>
</html>
Ich vermute aber, dass ich das nicht verstanden habe, wie man das Ding richtig verwendet. Hmm hat einer verstanden was ich will?