formular.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
  <head>
    <title>Formulare mit PHP</title>
    <meta http-equiv="content-type" content="text/plain; charset=utf-8" />
    <meta http-equiv="content-language" content="de" />
    <link type = "text/css" rel = "stylesheet" href = "style.css" />
 </head>
<body>
 <body>
<h1>Formulare - Usereingabe</h1>
<form method="post" action="eingabe.php">
<u>Username:</u> <input type="text" name="us" value="user"><br>
<u>Kennwort:</u> <input type="password" name="pw" value="1234"><br>
<input type="submit" value="Anmelden">
<input type="reset" value="L&ouml;schen">
</form>
<?php
 
$user = $_POST['us'];
$pw = $_POST['pw'];
$user_korrekt = "Test" ;
$pw_korrekt= "123" ;
echo "<br />";
if ($user == $user_korrekt && $pw == $pw_korrekt) {
echo "<b>Anmeldung erfolgreich</b>" ;
include("Formular1.php");
else {
echo "<b>Anmeldung fehlgeschlagen</b>" ;
}
 
?>
</body>
</html>
Ergebnisse
 
-----------
Fifaforyou gibt es auch bei FB :
 
 
Fifaforyou © 2012 Diese Webseite wurde kostenlos mit Homepage-Baukasten.de erstellt. Willst du auch eine eigene Webseite?
Gratis anmelden