Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Regular Expressions, Sprawdzanie treści formularza
Kirtan Loor
post
Post #1





Grupa: Zarejestrowani
Postów: 44
Pomógł: 0
Dołączył: 22.10.2004
Skąd: Płock

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


Witam,
Mam pytanie, jak za pomoca RE sprawdzac, czy wprowadzone do formularza dane sa wprowadzone wg konkretnego szablonu?

Fragment:
  1. <?php
  2. preg_match("#(w+)|(w+) (w+)#", $_POST['name']);
  3. ?>


Ten kod dopuszcza mi jednak cyfry itp znaki:/


--------------------
A Chartreux et à Célestins, A Mendiants et à Dévotes,
A musards et claquepatins, A servants et filles mignottes
Portants surcots et justes cottes,A cuidereaux d'amour transis,
Chaussant sans méhaing fauves bottes, Je crie à toutes gens mercis.
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: 22.08.2025 - 02:21