Aug 8, 2008

Php Email Validation - A PHP data validation class with many functions

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Php Email Validation - A PHP data validation class with many functions

sonesay
I've been reading through my old php book (PHP 4.1) and came across this data validation class. It can check a number of things ranging from telephone numbers , credit card number formats, email address and some others. I checked out some of the methods although I didnt expect it to work 100% because I've found source code errors thoughout the book and CD. I tested out a few of the methods to check and some of them did return expected results but some didnt either so the data validation class was not perfect and it didnt really bother me.

The cool thing I found in the class was a method to validate an email address by contacting the server and asking the server if they were serving that particular email address. So far that seems like the best method to validate an email address before inserting it into your database. Well it turns out unlike some of the other methods that seem to work or just fail this one actually crashes apache so everytime it runs it will somehow make apache hang. I dont know why thats why I'm going to post it here and see if anyone can figure out why.


Heres the full class code. the 'email_works' method is the very last one in the class.
CODE
<?php

define ('DV_ERR_UNKNOWN', 0);
define ('DV_ERR_TEL_TOO_SHORT', 1);
define ('DV_ERR_TEL_TOO_LONG', 2);
define ('DV_ERR_TEL_ILLEGAL_CHARS', 3);

class DV {

var $errtype;
var $errstr;

function DV ()
{
$this->errtype = FALSE;
$this->errstr = '';
}

/*
* method: is_us_tel ($tel)
* args: $tel (value to test)
*
* Tests $tel to see if it looks like a U.S. telephone number (ten digits
* including area code). We ignore any parentheses, dashes, dots or spaces.
*/

function is_us_tel ($tel)
{
// replace parentheses, dashes, dots or spaces with ''
$new_tel = ereg_replace ("[\(\)\. -]", "", $tel);
$l = strlen ($new_tel);
if ($l < 10)
{
$this->errtype = DV_ERR_TEL_TOO_SHORT;
$this->errstr = "Telephone numbers must have 10 digits. ('$tel' " .
"contains $l digits.)";
return false;
}
if ($l > 10)
{
$this->errtype = DV_ERR_TEL_TOO_LONG;
$this->errstr = "Telephone numbers must have 10 digits. ('$tel' " .
"contains $l digits.)";
return false;
}
// make sure there are only digits left
if (ereg ("[^0-9]", $new_tel))
{
$this->errtype = DV_ERR_TEL_ILLEGAL_CHARS;
$this->errstr = "'$tel' is not valid. Telephone numbers may " .
"only contain digits, parentheses and dashes.";
return false;
}
return true;
}

/*
* method: is_us_zip ($zip)
* args: $zip (value to test)
*
* Tests $zip to see if it looks like a U.S. zip code (five digits).
*/

function is_us_zip ($zip)
{
// match exactly five digits
if (!ereg ("^[0-9]{5}$", $zip))
return false;
return true;
}

/*
* method: is_us_zip_plus_four ($zip)
* args: $zip (value to test)
*
* Tests $zip to see if it looks like a U.S. zip+4 (five digits followed by
* a dash followed by four digits).
*/

function is_us_zip_plus_four ($zip) {
// match exactly five digits followed by dash followed by four digits
if (!ereg ("^[0-9]{5}-[0-9][{4}$", $zip))
return false;
return true;
}

/*
* method: is_valid_cc_num ($num, $type)
* args: $num (credit card number to test)
* $type (type of card)
*
* Checks validity of Visa, Discover, Mastercard, AmEx credit card numbers.
* First arg is the credit card number, second is card type. Card type may be
* one of 'visa', 'discover', 'mastercard', 'amex'. Uses hard-coded knowledge
* about card numbers (e.g., all Visa card numbers start with 4) and mod10
* algorithm to check validity.
*
* Note that the $num argument must be a string, not a float or integer.
*/


function is_valid_cc_num ($num, $type) {
$ndigits = strlen ((string) $num);
switch ($type) {
case ('visa'):
// must begin w/ '4' and be 13 or 16 digits long
if (substr ($num, 0, 1) != '4')
return false;
if (!(($ndigits == 13) || ($ndigits == 16)))
return false;
break;
case ('discover'):
// must begin w/ '6011' and be 16 digits long
if (substr ($num, 0, 4) != '6011')
return false;
if ($ndigits != 16)
return false;
break;
case ('mastercard'):
// must begin w/ two-digit num between 51 and 55
// and be 16 digits long
if (intval (substr ($num, 0, 2)) < 51)
return false;
if (intval (substr ($num, 0, 2)) > 55)
return false;
if ($ndigits != 16)
return false;
break;
case ('amex'):
// must begin w/ '34' or '37' and be 15 digits long
if (!((susbtr ($num, 0, 2) == '34') ||
(substr ($num, 0, 2) == '37')))
return false;
if ($ndigits != 15)
return false;
break;
default:
return false;
}
// compute checksum using mod10 algorithm
$checksum = 0;
$curpos = $ndigits - 2;
while ($curpos >= 0) {
$double = intval (substr ($num, $curpos, 1)) * 2;
for ($i = 0; $i < strlen ($double); $i++)
$checksum += intval (substr ($double, $i, 1));
$curpos = $curpos - 2;
}
$curpos = $ndigits - 1;
while ($curpos >= 0) {
$checksum += intval (substr ($num, $curpos, 1));
$curpos = $curpos - 2;
}

// see if checksum is valid (must be multiple of 10)
if (($checksum % 10) != 0)
return false;

return true;
}

/*
* method: is_email ($email)
* args: $email (value to test)
*
* Tests $email to see if it looks like an e-mail address. This only works
* for 'simple' email addresses in the format 'user@example.com'.
*/

function is_email ($email)
{
$tmp = split ("@", $email);
if (count ($tmp) < 1)
return false;
if (count ($tmp) > 2)
return false;

$username = $tmp[0];
$hostname = $tmp[1];

// make sure $username contains at least one of the following:
// letter digit _ + - .
if (!eregi ("^[a-z0-9_\+\.\-]+$", $username))
return false;

// make sure $hostname is valid (see is_hostname() below)
if (!$this->is_hostname ($hostname))
return false;

return true;
}

/*
* method: is_hostname ($host)
* args: $host (value to test)
*
* Tests $host to see if it looks like a valid Internet hostname.
*/

function is_hostname ($host)
{
// make sure $h: starts with a letter or digit; contains at least
// one dot; only contains letters, digits, hypehns and dots; and
// ends with a TLD that is a) at least 2 characters and cool.gif only
// contains letters
if ( !eregi ("^[a-z0-9]{1}[a-z0-9\.\-]*\.[a-z]{2,}$", $host))
return false;
// make sure the hostname doesn't contain any nonsense sequences
// involving adjacent dots/dashes
if (ereg ("\.\.", $host) || ereg ("\.-", $host) || ereg ("-\.", $host))
return false;
return true;
}


/*
* method: is_email_rfc822 ($email)
* args: $email (address to validate)
*
* We pass $mail off to imap_rfc822_parse_adrlist() and check to see whether a)
* it returned a 1-element array as expected and cool.gif if it did, whether any
* errors were caught by imap_rfc822_parse_adrlist() during checking.
*/

function is_email_rfc822 ($email) {
$addrs = imap_rfc822_parse_adrlist ($email, '');
if (count ($addrs) != 1)
return false;
if ($s = imap_errors())
$this->errstr = "The following errors were found: ";
for ($i = 0; $i < count ($s); $i++)
$this->errstr .= $i + 1 . ". " . $s[$i] . " ";
return false;
return true;
}

/*
* function email_works ($email)
* args: $email (address to test)
* We simulate an SMTP session to the server and use the 'RCPT TO'
* to see whether the mail server will accept mail for this user.
*/

function email_works ($email) {
// get the list of mail serves for the user's host/domain name
list ($addr, $hostname) = explode ("@", $email);
if (!getmxrr ($hostname, $mailhosts))
$mailhosts = array ($hostname); // if no MX records found
// simply try their hostname
$test_from = "me@domain.com"; // replace w/ your address
for ($i = 0; $i < count ($mailhosts); $i++)
{
// open a connection on port 25 to the recipient's mail server
$fp = fsockopen ($mailhosts[$i], 25);
if (!$fp)
continue;
$r = fgets($fp, 1024);
// talk to the mail server
fwrite ($fp, "HELLO " . $_SERVER['SERVER_NAME'] . "\r\n");
$r = fgets ($fp, 1024);
if (!eregi("^250", $r))
{
fwrite ($fp, "QUIT\r\n");
fclose ($fp);
continue;
}
fwrite ($fp, "MAIL FROM: <" . $test_from . ">\r\n");
$r = fgets ($fp, 1024);
if (!eregi("^250", $r))
{
fwrite ($fp, "QUIT\r\n");
fclose ($fp);
continue;
}
fwrite ($fp, "RCPT TO: <" . $email . ">\r\n");
$r = fgets ($fp, 1024);
if (!eregi("^250", $r))
{
fwrite ($fp, "QUIT\r\n");
fclose ($fp);
continue;
}
// if we got here, we can send email from $test_from to $mail
fwrite ($fp, "QUIT\r\n");
$r = fgets($fp, 1024);
fclose ($fp);
return true;
}
return false;
}

}

?>


I'm using it like this ($s is just short for $_SESSION)
CODE
$test_email = new DV;

$test1 = $test_email->email_works($s['app_email']);


Test it out on your server if you have time. I dont really understand the email_works method to be honest but the code isnt throwing any errors and I'm not sure why it isnt working. If there is something similar or better I can use for email validation out there please let me know. I've used a simplier alternative to this in the past but I think its limited in that it doesent check if the email is valid on the server.

Heres the code: I think i got it off php.net in the past
CODE
function ck_email ($mail) {
//default
$ck_email_result = "Default";
//pattern
$regex = '/\A(?:[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+'
.'(?:\.[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+)*@'
.'(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[a-z]{2}|'
.'com|org|net|gov|biz|info|name|aero|biz|info|jobs|'
.'museum)\b)\Z/i';

if ($mail == '') {
$ck_email_result = "<span class='error_header'>Email Required!</span>";
}
else if (preg_match($regex, $mail)) {
$ck_email_result = "<span class='ok_header'>OK!</span>";
}
else {
$ck_email_result = "<span class='error_header'>Invalid Emai!</span>";
}

return $ck_email_result;
}


Again if you have any suggestions for improvment or an alternative to this function please let me know or better yet share your method or way of checking for valid email addresses.

 

 

 


Reply

galexcd
Wow this is extremely interesting. If I ever had to validate an email address in the past I would just send them a verification email with some kind of link in it but this seems much more user friendly. I'm not sure if it would work all the time. I am no expert at servers but I would think that some servers might not allow you to check like this.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. iban validation script - 76.74 hr back. (1)
  2. iban validator script - 114.16 hr back. (1)
  3. imap_errors() hangs - 392.17 hr back. (1)
Similar Topics

Keywords : php, email, validation, php, data, validation, class, functions

  1. Functions
    ??? (8)
  2. An Interesting Approach To Email Verification...
    (6)
    I was thinking just now and I came up with a very interesting solution for email verification.
    It's actually based off of how alot of spammers get your email: Dynamic images. You could have
    a dynamic image display in the email that activates the account when loading it. The only downfall
    to it is if your users are using a an email provider such as Gmail, the images will be blocked, but
    I have a solution for that too. You could have the image say "Congratulations your account has been
    activated". And then below the image in plain text write "If you do not see the....
  3. Php + Mysql Question!
    While inserting data into MySQL, how can I know if the data I'm in (4)
    Basically, I want to know if the Data I'm inserting through a Form is already there or not. Sort
    of a Username registration page. I have this, but it doesn't appear to work... CODE
    $result = mysql_query("SELECT * FROM users WHERE
    username='$username'"); if($result == 1)     {     echo
    '<h1>ERROR!</h1>The username you have chosen already exists!';     }
    ....
  4. Php Functions To Send Mail
    (4)
    Which other methods to send mail from a form? I just know mail function, like: mail(string to,
    string subject, string message) Has anyother?....
  5. Arrays Outside A Function
    Need to have arrays available to all functions. (3)
    I've got a bunch of arrays that i want to use for more then 1 function. when i declear the
    arrays outside a function i cant use it in a function. This code was originally written in
    javascript by another person but since I plan to use it and extend it with php I had to change it
    from javascript to php code. In the javascript code the arrays were decleared outside the functions
    with 'var arrayname' I read somewhere that declearing javascript variables with
    'var' gives it global access. Any ideas on how I can go about declearing 1 set of these
    arrays t....
  6. Encode Your Email Address
    Confuse the Spam Bots, but not your viewing clients (5)
    Spam bots often 'scrape' pages to glean information and collect email addresses. I don't
    like that. To combat the Bots from collecting my address off of my site, I wrote a script that
    includes 'obscures' the address in several ways. It adds 'AT' where the '@'
    sign is and then replaces the '.' with 'DOT' so it is humanly readable, but not by
    the Bots. Also, it encodes the 'mailto' and the address used in the 'mailto' so it
    shows okay on the web page and on:hover, but it is actually encode into hex value....
  7. Username Validation With Php
    (1)
    A simple method of validation. This is good if you dont want spaces between caracters: form.php
    CODE <FORM action="vali.php" method="post">     <P>
        <LABEL for="user">User name: </LABEL>     <INPUT
    type="text" id="user"><BR>     <INPUT type="submit"
    value="Send">     </P> </FORM> vali.php CODE <?php
    $user =$_POST['user']; $cuser=0; for($i=0;
    $i<strlen($u....
  8. Using Multiple Selection Array In Table To Order Data
    Using multiple selection array in table to order data (1)
    have a form that has a multiple select choice, like this: CODE <form method="post"
    action="display.php" <select multiple name="selectsort[]">
    <option value="code">Code</option> <option
    value="amount">Amount</option> <option value="dateammended">Date
    Ammended</option> <option value="expreviewdate">Expiration/Review
    Date</option> <option value="effectivedate">Effective Date</option>
    <option value="e....
  9. Validation Script - Detecting Illegal Characters
    preg_match to find illegal characters (0)
    I'm trying to validate a user's desired username for a registration page. I want to detect
    any illegal characters being used for a username. So far i have managed to include most execpt the
    '\', the '\' is used for escape and treating the preceding characters
    literally. I try to do '\\' but i get an error because it execects another
    character. CODE $ck_result = "Default"; $pattern =
    "/[!|@|#|$|%|^|&|*|(|)|_|\-|=|+|\||,|.|\/|;|:|\'
    ;|\"|&#....
  10. Trouble With Phpbb Email
    (1)
    Hi guys, I want to know if there is anything you can do for sending confirmation email to your
    users automatically when they have just regeistered, when the host server does not support SMTP
    (Simple Mail Transfer Protocol). ? Thanks alot.....
  11. Encrypt Functions
    (0)
    Here is my 3rd Code: By this code you can encrypt your text: CODE <?php $a =
    md5("hello"); $b = base64_encode("hello"); $c =
    base64_decode("hello"); print "md5 = ".$a." base64_encode =
    ".$b." base64_decode = ".$c; ?> EASY!....
  12. Email Sending.
    email sending with php. (1)
    this script allow user to send an email for you. i hope you enjoy /wink.gif"
    style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> CODE
    [color="#0000ff"][indent]<?      $top='<html
    dir="rtl">      <head>   <meta http-equiv="Content-Language"
    content="fa">   <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8">   </head>      <body>      <div
    align="center">       <p style="margin-top&....
  13. [php](simple) Using Functions To Combine Values In A Form
    Really simple example on how to combine values with function (2)
    I just learned this simple method on how to use functions to combine two values from a form. First
    we create ourselves a simple POST form CODE <form method="POST"> Name:
    <input type="text" name="nickname"> Location: <input
    type="text" name="location"> <input type="submit"
    value="Input"> </form> Now we add this php to that same file CODE
    <?php $nick = $_POST['nickname']; $location =
    $_POST['location' ....
  14. What Does This Do?
    $ban = ($data->login) ? $lban : $iban; (4)
    I'm correcting a 'few' php-files for a friend, but I got this line of code: CODE
    $ban = ($data->login) ? $lban : $iban; and I don't know
    what it does xD Could someone please explain me what this line does? Thanks....
  15. Problems With Data Formatting
    (2)
    I have a MySQL database which stores articles. A sample article would look like this: CODE This
    is a body. This is a body.This is a body.This is a body.This is a body.This is a body.This is a
    body.This is a body.This is a body.This is a body.This is a body.This is a body.This is a body.This
    is a body.This is a body.This is a body.This is a body. This is a body.This is a body.This is a
    body.This is a body.This is a body.This is a body.This is a body.This is a body.This is a body.This
    is a body.This is a body.This is a body.This is a body.This is a body. That'....
  16. Putting Data Of 2 Pages In Mysql At Once
    (1)
    suppose i have a page, page.php?part=1 there i have some text fields. user will give input, but
    after taking input, it will not put the data in mysql .. but it will take to the next step..
    page.php?part=2 (if any field is left blank, it will not go to next page.. ) . and there also some
    fields.. after the user has filled that form also, then it will insert all data (from part1 and
    part 2) in mysql. i want to ask, how i can collect data from 2 pages and put in mysql at once.....
  17. How Good Is This Data Cleaning Function?
    (2)
    Hi all, this is my first function and as part of a script and i just want to know a couple of
    things. here is the code for the function: CODE <? function
    clean($dirty_string) { $muddy_string = stripslashes($dirty_string);
    $murky_string = strip_tags($muddy_string); $clean_string =
    htmlentities($murky_string);      }; ?> So the first thing is how secure is
    it? the script this will be used in connects to a database and sends an email so it needs to stop
    SQL injections and any email ab....
  18. Add Users On Email Program With Php?
    (1)
    First of all Marry Christmas, Well so i am in some kind of a problem, i can't find out how to
    add users to my mail service, i have no idea what SMTP/IMAP program the server runs, neither does
    the system administrator. But it should be kinda the same thing for all of them if i am not wrong,
    Anyways i have full access to server so i can do whatever i want to do, i have SSH access too (Root
    access /rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0"
    alt="rolleyes.gif" /> )....
  19. Email Header Inject Test
    (0)
    So I'm trying to write a script to check if someone is trying to do a header inject using my web
    based email form. The problem is that, regardless of the content, it is being tagged as hijacked.
    The following is the relevant part of my code: CODE $ip=$_POST['ip'];
            $httpref=$_POST['httpref'];
            $httpagent=$_POST['httpagent'];
            $visitor=$_POST['visitor'];
            $visitormail=$_POST['visitormail'];         $s....
  20. Gd Functions
    Questions (2)
    Hi all I want begin a new project , my new project is Photo blog ( weblog and image album ) in one
    script for example you can post many image in one post at once case . so its very good and very easy
    but we have some problems . if you can plz help me to fix this problems for example : we need
    change image size for page speed ( we dont want show 16 image in one page ) * we need GD functions
    to change image size to smaller and then show smaller image at page if you know source or tutorial
    about change image size plz post here . thankx we know we can change image size (w....
  21. Wappymail_v1.50
    wap free mail/ email admin script :-) (15)
    Here is my new wap mail script. You can use it as a free email sending service or an email admin
    form (can set this option in config.php) its extremly simple to install and you will find full
    instructions in the zip file. Please feel free to comment, rate, or update this script :-)
    /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> ....
  22. Wappy's Php Snippets
    I will place here usefull php snippets and functions that i learn/use (13)
    Here is a function you can use to generate a simple random password for whatever use ;-) CODE
    <? function rand_pass($numchar){ $string = str_shuffle
    ("abcdefghijklmnopqrstuvwxyz1234567890"); $password = substr ($string,
    1, $numchar); return ($password); } //example echo
    rand_pass('8'); // will return an 8 character long random password of numbers and
    letters like c8k4ss42 ?> CODE tags added. Here is an extremly usefull search function
    that will search a directory and....
  23. Yet Another Problem With A Form Script
    Maybe I should just use email? lol (6)
    Okay, here is what I got. I know, three topics on form scripts, but hey, I am learning. I used a
    generator, and then put it on, but it is giving me a santax (is that how you spell it) on line 13
    with an unexpected = sign. I recited taht the best I could. Anyway, so I need some help. The form
    is located in http://inneed.mxweb.co.uk/askandanswer.html The script behind the whole works, I
    named, aaform.php. Moving right along here, I got this error, so here is the code that I called
    aaform.php, you know the one that works the whole thing: CODE <?php // Webs....
  24. Loading Mysql Data Into A Table
    (10)
    Hey i have a little problem with my php script. i dont really know how to make it work ^^; I want to
    have this exact table: ' I made mysql table that has one column for id(auto-increment,
    primary key), and then it has row and collumn and text. row means which row in the html table and
    collumn wich collum. (obviously /tongue.gif" style="vertical-align:middle" emoid=":P" border="0"
    alt="tongue.gif" />) here is the mysql table screenshoted from phpMyAdmin: r means row and c
    collumn /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue....
  25. Same 1 Registeration Data For Different Purposes
    (4)
    I want to install 4 scripts on my website .. 1- Gallery 2-Classfied Ads 3-Game Cheats Script (A
    simple script where ppl can register and then submit the cheats) 4-Php Nuke The problem is that all
    of 4 scripts needs registeration of members (use 4 different databases).... I want that all the
    member which is registered at one place can login at all of the services..i mean , one registeration
    form , that can work for all.. how i can do it ? Please tell in details..thanks.....
  26. Email Server Help Please
    I need noob detailed help on setting up a email server on windows XP (0)
    Hello I would like to say thank you for any help you might give me. I'm new to Apache / PHP and
    MySQL I have all them up and running propertly I think. I want to make a PHP online game and I need
    to set up an email server so I can have and authincation system. When the player creates an account
    I want the computer to email the player a link the have to click on to make there account active.
    I have a Comcast 8mbits broadband connection My server is running at http://192.168.1.105 My
    PHPinfo file is http://192.168.1.105/phpinfo.php My FormMail File http://192....
  27. Some Php Functions Explaination Required
    (2)
    Can some one please tell me what is the purpose of the following functions , although there's a
    little explaination with everyline but i cant understand, can some one exaplin it bit clearly and
    tell me that why it is needed in config.inc.php.. what is its purpose and will it work if i dont
    include these files in config.inc.php thanks QUOTE ### Url were Website has been installed, not
    '/' in end! define('C_URL','http://www.test.com/Website'); ### Internal
    path to Website directory define('C_PATH','Z:/home/www.test.com/www/....
  28. Finding Data In Meta Tags
    using php to search Meta Tags for data (0)
    In the Head portion of an Html file, there are usually several Meta Tags that contain data about
    various things, like the tag for keywords, an Author's name or maybe a description field. Here
    are two example Meta tags: HTML meta name =" Keywords " content=" keyword1, keyword2 " />
    meta name =" Description " content=" A Description of the file's content is here " /> So,
    what I have a question about concerns checking a file to see what information is included in these
    tags and using that information as variables or content in the output of the page....
  29. Listing From Table Row Data
    Listing all members (5)
    Hello, it's been a while since i've been active in the PHP Board ( i used to be really
    active in here ), not only to help others but also to request help ( people knowing those requests,
    dont share your bad experience with my requests /tongue.gif' border='0'
    style='vertical-align:middle' alt='tongue.gif' /> ) Anyway, i am requesting help on a listing of
    members, i totally forgot about how to fetch the rows from a table and display each row, i thought
    it was: CODE $result=mysql_query("SELECT * FROM $usertable ORDER BY id
    DESC") or....
  30. Email Form
    Very Simple (12)
    This is another little script that I devised. It's very simple. As the name suggests, it's
    a script that lets the user send an email via a form. CODE SENDMAIL.PHP echo "<form
    action='form-send.php' method='get'>"; echo "To: <input
    type='text' name='email' size=20>"; echo "Subject: <input
    type='text' name='title' size=20>"; echo "Message: <textarea
    cols=50 rows=25 name='message'></textarea>"; echo "<input typ....

    1. Looking for php, email, validation, php, data, validation, class, functions

Searching Video's for php, email, validation, php, data, validation, class, functions
Similar
Functions -
???
An
Interesting
Approach To
Email
Verification
...
Php + Mysql
Question!
; - While
inserting
data into
MySQL, how
can I know
if the data
I'm in
Php
Functions To
Send Mail
Arrays
Outside A
Function -
Need to have
arrays
available to
all
functions.
Encode Your
Email
Address -
Confuse the
Spam Bots,
but not your
viewing
clients
Username
Validation
With Php
Using
Multiple
Selection
Array In
Table To
Order Data -
Using
multiple
selection
array in
table to
order data
Validation
Script -
Detecting
Illegal
Characters -
preg_match
to find
illegal
characters
Trouble With
Phpbb Email
Encrypt
Functions
Email
Sending. -
email
sending with
php.
[php](simple
) Using
Functions To
Combine
Values In A
Form -
Really
simple
example on
how to
combine
values with
function
What Does
This Do? -
$ban =
($data-
>login) ?
$lban :
$iban;
Problems
With Data
Formatting
Putting Data
Of 2 Pages
In Mysql At
Once
How Good Is
This Data
Cleaning
Function?
Add Users On
Email
Program With
Php?
Email Header
Inject Test
Gd Functions
- Questions
Wappymail_v1
.50 - wap
free mail/
email admin
script :-)
Wappy's
Php Snippets
- I will
place here
usefull php
snippets and
functions
that i
learn/use
Yet Another
Problem With
A Form
Script -
Maybe I
should just
use email?
lol
Loading
Mysql Data
Into A Table
Same 1
Registeratio
n Data For
Different
Purposes
Email Server
Help Please
- I need
noob
detailed
help on
setting up a
email server
on windows
XP
Some Php
Functions
Explaination
Required
Finding Data
In Meta Tags
- using php
to search
Meta Tags
for data
Listing From
Table Row
Data -
Listing all
members
Email Form -
Very Simple
advertisement



Php Email Validation - A PHP data validation class with many functions



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE