Ikon the verbal hologram: Fehlerhaft Positioniert

Beitrag lesen

Der ausgegebene Quelltext des Skripts wäre hilfreich...
Evtl. läuft auf deinem Server gar kein php.

Doch, das PHP müsste laufen.

Das ist der ausgegebene Quelltext:

sry, highlighting vergessen

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"  
       "http://www.w3.org/TR/html4/strict.dtd">  
<html>  
 <head>  
  
<?php  
  
     $section = array();  
     $section['info'] = 'info.html';  
     $section['else'] = 'else.php';  
  
     if ($_SERVER['REQUEST_METHOD'] == 'POST') {  
      session_start();  
  
      $username = $_POST['username'];  
      $passwort = $_POST['passwort'];  
  
      $hostname = $_SERVER['HTTP_HOST'];  
      $path = dirname($_SERVER['PHP_SELF']);  
  
      // Benutzername und Passwort werden überprüft  
      if ($username == 'Admin' && $passwort == 'test') {  
            $_SESSION['angemeldet'] = true;  
      }  
?>  
  
  <title>Swisscanto Ticketing System</title>  
  <link rel="stylesheet" type="text/css" href="css\style.css">  
        <link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">  
 </head>  
  
<body>  
  
    <?php  
        if ($_SESSION['angemeldet'] == true){  
            if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1') {  
                if (php_sapi_name() == 'cgi') {  
                 header('Status: 303 See Other');  
                 }  
                else {  
                 header('HTTP/1.1 303 See Other');  
                 }  
               header('Location: http://'.$hostname.($path == '/' ? '' : $path).'/indexxx.php');  
               exit;  
            }  
         }  
             else {  
                echo "<div id=Info>  
                      <form action=login.php method=post>  
                      <p>Username:<br><input name=username type=text size=15 maxlength=30 value=Admin></p>  
                      <p>Kennwort:<br><input name=passwort type=password size=15 maxlength=12></p>  
                      <p><input type=submit class=Button value=Anmelden></p>  
                      </form></div>";  
             }  
    ?>  
  
  
 <h1><img src="img/SwisscantoD.png" width="300px"><br>Ticket erstellen</h1>  
  
  
  <ul id="Navigation">  
    <li><a href="#">Ticket Erstellen</a></li>  
  </ul>  
  
  
  
  
  <div id="Inhalt">  
    <h2>Ticket erstellen</h2>  
  
  <form action="http://de.selfhtml.org/cgi-bin/comments.pl">  
    <table border="0" cellpadding="3" cellspacing="0">  
      <tr>  
        <td align="right">Vorname:</td>  
        <td><input name="Vorname" type="text" class="Feld" size="30" maxlength="30"></td>  
      </tr>  
      <tr>  
        <td align="right">Nachname:</td>  
  
        <td><input name="Nachname" type="text" class="Feld" size="30" maxlength="40"></td>  
      </tr>  
      <tr>  
        <td align="right" valign="top">Standort:</td>  
        <td>  
          <input type="radio" class="Radio" name="Standort" value="Zuerich"> Z�rich  
          <input type="radio" class="Radio" name="Standort" value="Bern"> Bern  
          <input type="radio" class="Radio" name="Standort" value="Basel"> Basel  
          <input type="radio" class="Radio" name="Standort" value="Pully"> Pully  
        </td>  
  
      </tr>  
      <tr>  
        <td align="right" valign="top">Problem betreffend...</td>  
        <td>  
        <select name="Problem" class="Auswahl" size="1">  
          <option value="Outlook">Outlook</option>  
          <option value="Office">Office</option>  
  
          <option value="Internet">Internet</option>  
          <option value="Drucker">Drucker</option>  
        </select>  
        </td>  
      </tr>  
      <tr>  
        <td align="right" valign="top">Problembeschreibung:</td>  
  
        <td><textarea name="Text" class="Bereich" rows="10" cols="50"></textarea></td>  
      </tr>  
      <tr>  
        <td align="right">Formular:</td>  
        <td>  
          <input type="submit" class="Button" value="Absenden">  
          <input type="reset" class="Button" value="Abbrechen">  
        </td>  
  
      </tr>  
    </table>  
  </form>  
  </div>  
  
  <p id="Fusszeile">(c) by Swisscanto</p>  
  
 </body>  
</html>