When i started with web development the first language i touched was PHP, i started creating simple form data inputs with some fields like:
And yes, they “work” but what happens when the users give us wrong data? 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).
Nice! so let’s work on our someAction.php file.
Great! 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.