Jump to content

Slater8242

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Slater8242

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. This is my validation function class emailValidation { public $emailMessage=""; function checkemail($emailText) { return (!preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $emailText) ) ? FALSE : TRUE; } function columbia($emailText){ return (!preg_match("/@([\w-])+\.co$/mi", $emailText)) ? FALSE : TRUE; } function validation(){ if(isset($_POST['emailSubmit'])){ if (empty($_POST["emailText"])) { $this->emailMessage = "Email is required"; } else { $e
×
×
  • Create New...