Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?
        $error = array();
        if ($_GET[error]) { $error = $_GET[error]; }
?>
  <div class="basket">
  <div class="basket_oben">
<form method="post" action="gaestebuch.htm">
    <table border="0" cellspacing="2" cellpadding="0" style="font-weight:normal">
      <tr>
        <td>&nbsp;</td>
        <td><p><strong>Eintrag ins G&auml;stebuch:</strong></p></td>
      </tr>
      <tr>
        <td>Name<span class=pflicht>*</span>:</td>
        <td><input class="text" type="text" name="Name" value="<?=$_GET[Name];?>">
          <? if (in_array("Name", $error)) { ?>
          Bitte geben Sie Ihren Namen an!
          <? } ?>
        </td>
      </tr>
      <tr>
        <td>E-Mail<span class="pflicht">*</span>:</td>
        <td><input class="text" type="text" name="mail" value="<?=$_GET[mail];?>"> (wird nicht veröffentlicht)
          <? if (in_array("mail", $error)) { ?>
          Bitte geben Sie Ihre E-Mail-Adresse an!
          <? } ?>
        </td>
      </tr>
      <tr>
        <td>Stadt:</td>
        <td><input class="text" type="text" name="Stadt" value="<?=$_GET[Stadt];?>">
          <? if (in_array("Stadt", $error)) { ?>
          Bitte geben Sie Ihren Wohnort an!
          <? } ?>
        </td>
      </tr>
      <tr>
        <td>Bundesland:</td>
        <td><input class="text" type="text" name="Bundesland" value="<?=$_GET[Bundesland];?>">
          <? if (in_array("Bundesland", $error)) { ?>
          Bitte geben Sie Ihr Bundesland an!
          <? } ?>
        </td>
      </tr>
      <tr>
        <td>Staat:</td>
        <td><input class="text" type="text" name="Staat" value="<?=$_GET[Staat];?>">
          <? if (in_array("Staat", $error)) { ?>
          Bitte geben Sie Ihr Land an!
          <? } ?>
        </td>
      </tr>
      <tr>
        <td valign="top" width="15%">Text:</td>
        <td><? if (in_array("text", $error)) { ?>
          Bitte geben Sie einen Kommentar an!<br />
          <? } ?>
          <textarea name="text" cols="40" rows="5"><?=$_GET[text];?>
</textarea>
        </td>
      </tr>
      <tr>
        <td colspan="2"><span class="pflicht">*</span>Pflichtfelder</td>
      </tr>
      <tr align="right">
        <td colspan="2"><input type="submit" name="action" value="Abschicken">
          <input type="reset" value="Zur&uuml;cksetzen" name="reset"></td>
      </tr>
    </table>
</form>
        </div>
    <div class="basket_unten"></div>
  </div>