Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Sprawdzanie fomularza - wyrażenia reg PCRE
aleo
post
Post #1





Grupa: Zarejestrowani
Postów: 137
Pomógł: 0
Dołączył: 23.08.2008

Ostrzeżenie: (0%)
-----


  1. <form action="" method=get >
  2.  <input type="text" name="mail">
  3.  <input type="submit" value="send"></form>
  4.  
  5.  <?php
  6.  
  7.  
  8.  
  9.  if (isset($_GET['send'])) {
  10.      if ( preg_match("/w+@.w{2,4}/" . $_GET['send']=! 1 ) ) {
  11.          echo"dobrze" ;
  12.      }
  13.      else "zle";
  14.  }
  15.  
  16.  
  17.  ?>


Witam

Dlaczego powyższy fomularz nie działa ?


--------------------
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 11:20