Wie kann ich bei diesem script mehrere namen+passwörter verwenden
login.php PHP-Code:
<?php
<?php
include "pass.php";
if ($_POST['txtUsername'] != $username || $_POST['txtPassword'] != $password) {
?>
<style type="text/css">
<!--
body {
background-image: url(../Banners/Background%20Big.jpg);
}
body,td,th {
color: #FFFFFF;
}
a:link {
color: #FFFFFF;
}
a:visited {
color: #FFFFFF;
}
a:hover {
color: #FFFFFF;
}
a:active {
color: #FFFFFF;
}
.Stil4 {
color: #000000;
font-weight: bold;
}
.Stil5 {font-size: 18px}
.Stil7 {color: #FF0000; font-weight: bold; }
-->
</style>
<h1 class="Stil5"></h1>
<form name="form" method="post" action="<?php echo $_SERVER
['PHP_SELF']; ?>">
</p>
<table width="200" border="0">
<tr>
<td><label for="txtUsername">Username:</label> </td>
</tr>
<tr>
<td><input type="text" title="Enter your Username" name="txtUsername" /></td>
</tr>
<tr>
<td><label for="txtpassword">Password:</label></td>
</tr>
<tr>
<td><input type="password" title="Enter your password" name="txtPassword" /></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Login" /></td>
</tr>
</table>
<label for="txtpassword"></label>
</p>
</p></form>
<?php
}else {
?>
[b] Inhalt [/b]</p>
<style type="text/css">
<!--
body {
background-image: url(../Banners/Background%20Big.jpg);
}
body,td,th {
color: #FFFFFF;
}
a:link {
color: #FFFFFF;
}
a:visited {
color: #FFFFFF;
}
a:hover {
color: #FFFFFF;
}
a:active {
color: #FFFFFF;
}
.Stil1 {
color: #FFFFFF;
}
.Stil4 {
color: #000000;
font-weight: bold;
}
.Stil7 {color: #FF0000; font-weight: bold; }
-->
</style>
<?php
}
?>
</p>
?>
pass.php PHP-Code:
<?php
<?
$username = "Test";
$password = "1234";
?>
?>
Is das irgendwie möglich?