EasyDevop is a PHP class to easily do things with PHP.
Check if an user inputted email address is valid:
include('includes/ed.php');
$ed = new EasyDevop;
if($ed->isvalid('email', $_POST['email'])){
header('Location: login.php');
} else{
echo "<h3>Please enter a valid email address</h3>";
}
Excepted values of isvalid()
:
isvalid('email', $_POST['email'])
isvalid('phoneNumber', $_POST['number'])
isvalid('url', $_POST['website'])
All classes in the classes folder is created by me, Jacques Marais, is released under the Apache v2 License and is open source.
No questions yet. If you have one you can ask it in the issues