Gegen Bilderklau - Das Original (https://www.gegen-bilderklau.net/index.php)
- Design, Website, Copyright (https://www.gegen-bilderklau.net/board.php?boardid=80)
--- Homepagehilfe (https://www.gegen-bilderklau.net/board.php?boardid=27)
---- Homepagehilfe - Archiv (https://www.gegen-bilderklau.net/board.php?boardid=139)
----- [PHP & MySQL] LogIn - Error (https://www.gegen-bilderklau.net/thread.php?threadid=126687)


Geschrieben von Jenny am 16.01.2008 um 20:35:

  LogIn - Error

Hi.

Ich habe schon wieder ein Problem, diesmal mit dem LogIn.

formular.html
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
<html>
<head>
<title>Privatstall Yamaro</title>
  <link rel="stylesheet" href="style.css">
</head>
<body style="background-image:url(http://tstannenheide.ts.ohost.de/Yamaro/Schnitt2.png)">

<div style="position: absolute; left: 0px; top: 0px;">
<img src="http://tstannenheide.ts.ohost.de/Yamaro/Schritt5.png" border="0">
</div>
<div style="position: absolute; left: 390px; top: 370px; width: 430px;">
<h1>Memberlogin</h1>
<DIV align=center>
<CENTER>
<form action="login.php" method="post">
<TABLE style="BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-BOTTOM: #000000 1px dashed" height=76 width="90%" border=0>
<TBODY>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="100%" bgColor=#717E8C colSpan=2 height=15><b>Real</b></TD></TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>Name</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15><input type="text" name="username" size="20"></TD></TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15>Passwort</TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15><input type="password" name="passwort" size="20"></TD></TR>
<TR>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15><input type="submit" value="LogIn" name="B1"></TD>
<TD style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" align=middle width="25%" bgColor=#D2D8E4 height=15><input type="reset" value="Löschen" name="B2"></TD></TR>
</TBODY></TABLE></FORM></CENTER></DIV>
</div>
<div style="position: absolute; left: 205px; top: 370px; width: 160px;">
<iframe style="height: 900px; width: 160px;" src="http://tstannenheide.ts.ohost.de/Yamaro/Menu.html" name="Menu" frameborder="0" style="FILTER: chroma (color=#ffffff)" ;></iframe>
</div>
</body>
</html>


login.php
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
<html>
<head>
<title>Privatstall Yamaro</title>
  <link rel="stylesheet" href="style.css">
</head>
<body style="background-image:url(http://tstannenheide.ts.ohost.de/Yamaro/Schnitt2.png)">

<div style="position: absolute; left: 0px; top: 0px;">
<img src="http://tstannenheide.ts.ohost.de/Yamaro/Schritt5.png" border="0">
</div>
<div style="position: absolute; left: 390px; top: 370px; width: 430px;">
<h1>Einsteller</h1>
<?php
$username = $_POST["username"];
$password = $_POST["passwort"];

if( ($username=="Jenny" AND $password=="pony99")
                                           OR
    ($username=="Jury" AND $password=="gegenbilderklau")
                                           OR
    ($username=="Freund" AND $password=="feind")
                                           OR
    ($username=="Liesa" AND $password=="tom") )
   {
   echo "Du wurdest erfolgreich eigeloggt. Klicke <script LANGUAGE="JavaScript">
function eKiwi() {
fenster = window.open("http://tstannenheide.ts.ohost.de/Yamaro/Intern","PopUp","width=700 ,height=600 ,menubar=no,toolbar=no,scrollbars=no,status=no,resizable=no,location=no,hotkeys=no")}
</script>
</head>
<body>

<a href="JavaScript:eKiwi()">hier</a> um in den internen Breich zu gelangen.";
   }
else
{
echo "LogIn gescheitert!";
}
?>

</div>
<div style="position: absolute; left: 205px; top: 370px; width: 160px;">
<iframe style="height: 900px; width: 160px;" src="http://tstannenheide.ts.ohost.de/Yamaro/Menu.html" name="Menu" frameborder="0" style="FILTER: chroma (color=#ffffff)" ;></iframe>
</div>
</body>
</html>


Wo liegt hier der Fehler?

LG
Jenny



Geschrieben von Verena1993 am 16.01.2008 um 21:04:

 

Wie lautet die Fehlermeldung?
Und in zeile 29 gehört des head raus glaub ich...
bei der php



Geschrieben von Jenny am 16.01.2008 um 21:11:

 

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /usr/export/www/hosting/tstannenheide/Yamaro/LogIn/login.php on line 26



hmm



Geschrieben von Verena1993 am 16.01.2008 um 21:18:

 

hm dann weiß ichs au ned



Geschrieben von Maina am 16.01.2008 um 21:34:

 

Was bezweckst du mit

function eKiwi() ?

Außerdem wärs leichter zu überschauen, wenn du deinen PHP Code zwischen [ php ] und [ / php ] (ohne leerzeichen) packst x)



Geschrieben von Jenny am 17.01.2008 um 14:03:

 

Zitat:
Original von reiterhofmeeresblick
Du hast überall die Semikolons vergessen

Genau das wars, danke aber an alleAugenzwinkern


Forensoftware: Burning Board, entwickelt von WoltLab GmbH