Hallo.
Habe mir ein kleines Login Script gebaut.
Allerdings wurmt es mich gerade das es nicht geht
Die Nachricht die eigentlich erst ausgegeben werden soll wenn man Passwort und Namen richtig eingegeben hat kommt von Anfang an.
Hier das ganze in live: http://contract.officialtcn.com/
Danke
Gruß Som3
Habe mir ein kleines Login Script gebaut.
Allerdings wurmt es mich gerade das es nicht geht
Die Nachricht die eigentlich erst ausgegeben werden soll wenn man Passwort und Namen richtig eingegeben hat kommt von Anfang an.
Hier das ganze in live: http://contract.officialtcn.com/
Danke
Gruß Som3
PHP:
<html>
<head>
<title>Contract</title>
</head>
<body>
<form action="index.php" method="post">
<table border=1>
<tr>
<td>Username:</td>
<td><input type="text" name="username"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password"></td>
</tr>
<tr>
<td>----> </td>
<td><input type="submit" name="senden" value=Login></td>
</tr>
</table>
</form>
<?php
$username = "test";
$password = "testpw";
if (($benutzer == "$user") and ($passwort == "$pass"))
{
echo "
You did it!
";
}
else
{
echo "Wrong Username / Password";
}
?>
</body>
</html>