KD-one: Nächste Runde - E-Mailprüfung mit RegEx

Beitrag lesen

Hi alle,

Auf ichens Rat hin hab ich nun auch eine E-Mailprüfung eingebaut, funktioniert eigentlich.
Könnt Ihr drüber schauen, ob die Syntax sowie auch der reguläre Ausdruck noch verbesserungsfähig wären?
Scriptauszug:

if (!empty($_POST['email'])) {
 if(!eregi("[1]([-_.]?[0-9a-zA-Z])*@0-9a-zA-Z*\.[a-zA-Z]{2,6}$",$email)) {
     echo "<p>Bitte geben sie eine gültige oder keine e-mailadresse ein!</p>";
        @readfile("guestbook/speicher.txt");
        exit;
    }
}

http://faq.united-web.at/guestbook/gaestebuch.phps

Übrigens, der Teil ist nun auch in der PHPS eingebaut. :-)

Gruß

Kurt

--
Nein, ich beantworte keine Anfragen per e-mail.
ss:( zu:) ls:[ fo:) de:] va:| ch:| sh:( n4:° rl:( br:? js:| ie:% fl:( mo:?
"Keine Kunst ist es, alt zu werden, es ist eine Kunst, es zu ertragen."  (Johann Wolfgang von Goethe; dt. Dichter, Jurist u. Staatsminister; 1749-1832)
http://elektro-dunzinger.at
http://shop.elektro-dunzinger.at

  1. 0-9a-zA-Z ↩︎

0 50

Nächste Runde - Gästebuchscript

KD-one
  • php
  1. 0
    ichen
    1. 0
      KD-one
  2. 0
    Andreas-Lindig
    1. 0
      KD-one
      1. 0
        ichen
        1. 0
          KD-one
      2. 0
        Andreas-Lindig
        1. 0
          KD-one
          1. 0
            Badboy46
            1. 0
              KD-one
              1. 0
                Badboy46
        2. 0

          Kommando zurück

          KD-one
  3. 0

    Nächste Runde - E-Mailprüfung mit RegEx

    KD-one
    1. 0
      Badboy46
      1. 0
        KD-one
        1. 0
          Badboy46
          1. 0
            KD-one
            1. 0
              Badboy46
              1. 0

                Nachtrag

                Badboy46
              2. 0
                KD-one
                1. 0
                  Badboy46
                  1. 0
                    KD-one
                    1. 0
                      Badboy46
                      1. 0
                        KD-one
              3. 0
                KD-one
          2. 0
            KD-one
            1. 0
              Badboy46
              1. 0
                KD-one
    2. 0
      Andreas-Lindig
    3. 0
      Cybaer
      1. 0
        KD-one
  4. 0

    vorläufig fertiges Script

    KD-one
    1. 0
      Andreas-Lindig
      1. 0
        KD-one
      2. 0

        Bitte nochmals um Hilfe :-)

        KD-one
        1. 0

          Danke, bereits erledigt! ;-)

          KD-one
    2. 0
      Badboy46
      1. 0
        KD-one
        1. 0
          Badboy46
          1. 0
            KD-one
            1. 0
              Badboy46
              1. 0
                KD-one
      2. 0
        KD-one
        1. 0
          Badboy46
          1. 0
            KD-one
          2. 0
            KD-one
            1. 0
              Badboy46
              1. 0
                KD-one
                1. 0
                  Badboy46