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

Beitrag lesen

Hi Badboy46,

So, nun hab ich die Syntax so abgeändert:

if (!empty($_POST['email'])) {
 if(!eregi("[1]+@[a-z0-9.\_-]+\.[a-z]{2,6}$",$email)) {
     echo "<p>Bitte geben sie eine gültige oder keine E-Mailadresse ein!</p>";
        @readfile("guestbook/speicher.txt");
        exit;
    }
}

Nach meinem Verständnis müsste es nun passen.
Nochmals Danke.

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:?
"Kein Problem wird geloest, wenn wir traege darauf warten, dass Gott allein sich darum kuemmert."  (Martin Luther King; am. Buergerrechtler; 1929-1968)
http://elektro-dunzinger.at
http://shop.elektro-dunzinger.at

  1. a-z0-9.\_- ↩︎

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