• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Problem mit Passwortschutz

Mickel

Neues Mitglied
Hallo ich habe das problem dass ich bei dem anmeldeformular für einen Passwortschutz im browser ' ?>angezeigt bekomme und somites nich funktioniert
hir ein screenshot
Neu%20IrfanView%20BMP%20File.jpg

und der code
Code:
<html>
<head>
<?php
 include("config.php");
 if (isset($_POST["Name"])) {
  if ($_POST["Name"] == $Name && $_POST["Passwort"] == $Passwort) {
   $_SESSION[$Name] = true; // Session-Cookie setzen
   header("Location: MitgliederInhalt.html" ); // Weiterleitung
  }
 }
?>
<body>
Inhalt der Webside
 <div align=center>
<h2>Login</h2>
<?php
echo '<form action="' . $_SERVER['SCRIPT_NAME'] . '" method="post" name="Form">
Name: <input type="text" name="Name" size="12"> 
Passwort: <input type="password" name="Passwort" size="12"> 
<input type="submit" value="ok"></form>'
?>
</div>
</td>
</tr>
</table>
</body>
</html>
 
Zurück
Oben