Jonny F: Problem mit LogIn-Formular

Beitrag lesen

<?php

$error_msg = "";
if ($_POST['username']) {

$username = $_POST['username'];
$password = $_POST['password'];

//Prüfe die Formulareingaben

// Simple hard coded values for the correct username and password
$admin = "theterminator";
    $adminpass = "goobernuts";
    // connect to mysql here if you store admin username and password in your database
    // This would be the prefered method of storing the values instead of hard coding them here into the script
    if (($username != $admin) || ($password != $adminpass)) {
$error_msg = ': <font color="#FF0000">Your login information is incorrect</font>';
} else {
session_start();
        $_SESSION['admin'] = "theterminator";
require_once "index.php";

//Möchtest du hier einen Script einbetten oder auf eine andere Seite verweisen

  exit();  
[sicher coden](http://board.protecus.de/t9630.htm)  
  
Tja also bei mir hat es funktioniert.  
  
Gruß Jonny F.