Bannliste

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • #16
    sorry meine Glas-Kugel ist in der Reparatur

    wenn du den code zeigen würdest könnte man dir helfen
    Onlie Browsergame: http://www.war-of-empire.de <-- 2. Weltkrieg

    Kommentar


    • #17
      hi also

      ban.php:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <title>ban.php</title>
      <style type="text/css">
      <!--
      body,td,th {
      color: ffffcc;
      }
      body {
      background-color: #660000;
      }
      .Stil1 {color: #660000}
      .Stil2 {
      font-family: Georgia, "Times New Roman", Times, serif;
      font-weight: bold;
      }
      .Stil3 {color: #ffffcc}
      -->
      </style>
      </head>

      <body>
      <br>
      Steam ID:
      <?
      echo $_POST["Steam_ID"];
      ?><br>
      Datum:
      <?
      echo $_POST["Datum"];
      ?><br>
      Nick:
      <?
      echo $_POST["Nick"];
      ?><br>
      Bann Grund:
      <?
      echo $_POST["Bann_Grund"];
      ?><br>
      Bann Dauer:
      <?
      echo $_POST["Bann_Dauer"];
      ?><br>
      Admin:
      <?
      echo $_POST["Admin"];
      ?>
      <br><br>
      </body>
      </html>


      banlist.php:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <title>banlist.php</title>
      <style type="text/css">
      <!--
      body,td,th {
      color: ffffcc;
      }
      body {
      background-color: #660000;
      }
      .Stil1 {color: #660000}
      .Stil2 {
      font-family: Georgia, "Times New Roman", Times, serif;
      font-weight: bold;
      }
      .Stil3 {color: #ffffcc}
      -->
      </style></head>
      <body>
      <form action="ban.php" method="post" enctype="multipart/form-data" target="_blank">
      <p class="Stil2">Steam ID:------
      <input name="Steam_ID" type="text" id="Steam_ID">
      </p>
      <p class="Stil2">Datum:--------
      <input name="Datum" type="text" id="Datum">
      </p>
      <p class="Stil2">Nick:------------
      <input type="text" name="Nick">
      </p>
      <p class="Stil2"><span class="Stil3">Bann Grund:</span>--
      <input name="Bann_Grund" type="text" id="Bann_Grund">
      </p>
      <p class="Stil2"><span class="Stil3">Bann Dauer:</span>--
      <input name="Bann_Dauer" type="text" id="Bann_Dauer">
      <br />
      <br>
      Admin:---------
      <input type="text" name="Admin">
      <br>
      <br />
      <label>Beweis:---------
      <input type="file" name="Beweis" />
      </label>
      <br>
      </p>
      <p>
      <input type="submit" name="senden" value="Senden">
      </p>
      </form>



      </body>
      </html>

      hoffe du kannst mir helfen - wäre echt nett - danke

      mfg

      chrisbert

      Kommentar


      • #18
        ist das gewollt das sich beim klick auf senden ein neues fenster öffnet?
        weil ich sehe den sinn darin nicht?

        Bei der ban.php gibst du die Daten ja nur aus. Dann ist doch klar das wenn man das forular nochmal abschickt, die neuen Daten ausgegeben werden.

        du must die daten speichern, entweder in einer Datenbank (zb. MySql)
        oder in textdateien. Suche einfach mal bei google da findest du sicher ein paar tut's/code's zu beiden varianten.

        ps:die links die hall gepostet hat sind auch gut.
        Zuletzt geändert von Rolandbar; 20.08.2006, 20:56.
        Onlie Browsergame: http://www.war-of-empire.de <-- 2. Weltkrieg

        Kommentar


        • #19
          Hallo Leute


          Folgendes:

          ich habe ein Formular in diese gebe ich meine Daten ein und nach dem absenden werden die auch ausgelesen und angezeigt. Jedoch beim 2 ten Eintrag werden diese wieder überschrieben - was klar is denn diese werden nur ausgelesen.
          So mein Anliegen:
          die Daten müssen nicht angezeigt werden sondern sollen in eine Datenbank eingetragen die ich bei Bedarf über einen Link aufrufen kann.

          Leider weiss ich nicht wie - muss ich eine neue Datenbank erstellen - wenn Ja - wie und wo.
          Bei den Daten handelt es sich um eine Ban-liste ich trage Steam-Id, Nick usw. ein und diese sollen dann in der Datenbank gespeichert werden. Oder gibt es eine andere, bessere Lösung z.B. in einem txt-file oder Html.

          anbei der code meiner beiden Dateien - ich denke mal das in der ban.php keine echo -post ausgeführt werden soll sonder hier der Befehl für das speicher bzw. übergeben in dioe Datenbank, txt oder html erfolgt

          Kann mir bitte jemand weiterhelfen - wäre echt wichtig - schon mal dickes THX.

          banlist.php

          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
          <title>banlist.php</title>
          <style type="text/css">
          <!--
          body,td,th {
          color: ffffcc;
          }
          body {
          background-color: #660000;
          }
          .Stil1 {color: #660000}
          .Stil2 {
          font-family: Georgia, "Times New Roman", Times, serif;
          font-weight: bold;
          }
          .Stil3 {color: #ffffcc}
          -->
          </style></head>
          <body>
          <form action="ban.php" method="post" enctype="multipart/form-data" target="_blank">
          <p class="Stil2">Steam ID:------
          <input name="Steam_ID" type="text" id="Steam_ID">
          </p>
          <p class="Stil2">Datum:--------
          <input name="Datum" type="text" id="Datum">
          </p>
          <p class="Stil2">Nick:------------
          <input type="text" name="Nick">
          </p>
          <p class="Stil2"><span class="Stil3">Bann Grund:</span>--
          <input name="Bann_Grund" type="text" id="Bann_Grund">
          </p>
          <p class="Stil2"><span class="Stil3">Bann Dauer:</span>--
          <input name="Bann_Dauer" type="text" id="Bann_Dauer">
          <br />
          <br>
          Admin:---------
          <input type="text" name="Admin">
          <br>
          <br />
          <label>Beweis:---------
          <input type="file" name="Beweis" />
          </label>
          <br>
          </p>
          <p>
          <input type="submit" name="senden" value="Senden">
          </p>
          </form>



          </body>
          </html>

          ban.php

          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
          <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
          <title>ban.php</title>
          <style type="text/css">
          <!--
          body,td,th {
          color: ffffcc;
          }
          body {
          background-color: #660000;
          }
          .Stil1 {color: #660000}
          .Stil2 {
          font-family: Georgia, "Times New Roman", Times, serif;
          font-weight: bold;
          }
          .Stil3 {color: #ffffcc}
          -->
          </style>
          </head>

          <body>
          <br>
          Steam ID:
          <?
          echo $_POST["Steam_ID"];
          ?><br>
          Datum:
          <?
          $timestamp = time();
          ?>
          <?
          echo $_POST["Datum"];
          ?><br>
          Nick:
          <?
          echo $_POST["Nick"];
          ?><br>
          Bann Grund:
          <?
          echo $_POST["Bann_Grund"];
          ?><br>
          Bann Dauer:
          <?
          echo $_POST["Bann_Dauer"];
          ?><br>
          Admin:
          <?
          echo $_POST["Admin"];
          ?>
          <br><br>
          </body>
          </html>


          nochmals vielen Dank

          MfG

          chrisbert

          Kommentar


          • #20
            Hallo Leute

            hat da niemand eine Idee und kann mir weiterhelfen

            Danke


            mfg

            chrisbert

            Kommentar

            Lädt...
            X