Hello I need some advice (I'm not expecting code - Just want to know if it's possible / references)
Basically, I want to create a class that I can check if the email has been submitted AND also, if it's formatted right (e.g. does it contain a @ but also go into a lot more depth) so it'd look a bit like:
<?php
include ('validationClass.php');
$validation = new Validation();
if($validation->validate($_POST['email']))->formatted())
{
echo 'Yes';
}
?>
So like:
$this->validate->formatted()
Any suggestions? =)