🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #231397

Re: gotowa klasa walidujaca formularz logowania ale tez inne formularze

#231397
From: Rafal Podsiadly
Date: Fri, 15 Jul 2016 20:33
12 lines
1910 bytes
Czy istnieje klasa -> https://www.formget.com/form-validation-using-php/
Tak na prawdę to to działa zupełnie inaczej.

Każdy formularz jest inny inaczej skonfigurowany a użytkownicy wymagają osobnych walidacji.

Więc nie waliduje się formularzy a poszczególne pola.
podstawą jest preg_match
Aby skorzystać z gotowych rozwiązań użyj framework yii zend symfony.

Ale pamiętaj istnieją rozwiązania walidujące pola po typie.
pole typu email, liczbowe, tekstowe 
oraz konfiguracja indywidualna według patern preg_match -> w sumie wszystkie walidacje można oprzeć na czymś takim.
Technical Details
Message-ID: <46576c9e-4eb4-439c-b879-e183aa2bac4a@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!f6no702774ith.0!news-out.google.com!d68ni1798ith.0!nntp.google.com!f6no702769ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
References: <14e7becb-94b5-4092-919c-26764c8c0703@googlegroups.com>

Show Full Headers
Complete Article Headers
X-Received: by 10.157.42.225 with SMTP id e88mr17227418otb.7.1468614823556;        Fri, 15 Jul 2016 13:33:43 -0700 (PDT)
X-Received: by 10.36.222.10 with SMTP id d10mr1415994itg.6.1468614823509; Fri, 15 Jul 2016 13:33:43 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!f6no702774ith.0!news-out.google.com!d68ni1798ith.0!nntp.google.com!f6no702769ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.lang.php
Date: Fri, 15 Jul 2016 13:33:42 -0700 (PDT)
In-Reply-To: <14e7becb-94b5-4092-919c-26764c8c0703@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=89.65.2.18; posting-account=reqlzgoAAACKWK1i9kGr8VyQtzu_4AF6
NNTP-Posting-Host: 89.65.2.18
References: <14e7becb-94b5-4092-919c-26764c8c0703@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <46576c9e-4eb4-439c-b879-e183aa2bac4a@googlegroups.com>
Subject: Re: gotowa klasa walidujaca formularz logowania ale tez inne formularze
From: Rafal Podsiadly <spinacz24@gmail.com>
Injection-Date: Fri, 15 Jul 2016 20:33:43 +0000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit