After I finished the 3 Pan Galactic Gargle Blasters, "ZtinKyFinGaZ"
<ask@4.it> just offered me, he muttered some weird stuff, and I had to
correct this gibberish:
>Sådan skal det ikke være..
>Det skal være med et array.
Undgå at toppost.
Her er lidt inspiration:
: <?
: $users[] = array("username" => "Martin","password" => "olebole");
: $users[] = array("username" => "osv","password" => "osv");
: $users[] = array("username" => "osv","password" => "osv");
: $users[] = array("username" => "osv","password" => "osv");
:
: if ($_REQUEST["login"] == "true") {
: if (isset($_REQUEST["username"]) && isset($_REQUEST["password"])) {
: $userfound = false;
: foreach($users as $user) {
: if ($user["username"] == $_REQUEST["username"] && $user["password"] == $_REQUEST["password"]) {
: $userfound = true;
: print "Du er nu logget ind";
: }
: }
: if (!$userfound) {
: print "Forkert brugernavn eller password";
: }
: }
: else {
: print "Du skal indtaste et brugernavn og password.";
: }
: }
: ?>
--
Nano Martin Mouritzen Phone +45 27105580
Vesterbrogade 30C. 2. Programmer Advanced Simplicity
DK-8000 Århus martin@nano.dk
http://www.nano.dk
Nano nu officiel dansk distributør af UltraEdit, se mere på websitet