Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Roberto Aleman  >  EAValidator  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: example
Class: EAValidator
Validate an e-mail address by checking its domain
Author: By
Last change:
Date: 5 years ago
Size: 1,060 bytes
 

Contents

Class file image Download
<?php 
/*
EValid, Email Address Validator
Author: Roberto Aleman, Email Address: ventics@gmail.com
General Public License (GPL)

How to Work?    
1.- check length of email address max is 320 characters where:
             64 characters max for the user of email address
              1 character max for the @
            255 characters max for the host name
    2.- apply regular expressions to valid email addres string
    3.- check if exist host to send messages to email address
*/
require_once("eavalidator.php");
if(isset(
$_POST['submit']))

$newemail = new email_validator(); 
$newemail->check_email($_POST[Email]);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form action='index.php' method='post' >
<p>Your Email:<input name='Email' type='text' size='50' id="submit" /></p>
<input name='submit' type='submit' /></form>
</body>
</html>