Source: m1000.medium.com

How to create a PHP validator.

Category: Laravel, Laravel, PHP, PHP

and we dont want to use HTML’s validation tags because they are unsafe. So i’ve decided to create my own Validator (no, not like Laravel validator). For this you must know the basics of: First of all we need a basic form with some fields (create your own or just copy it from below).

we only need to display those errors on login.php file adding some php script. And thats how we created our own validator in PHP.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners