logoon  windows
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Forum Register Log in  RSS Apache Lounge


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored by anyone.

Your donations will help to keep this site alive and well, and continuing the building of the binaries.




 Current Stats


Busyworkers

CPU Utilization
CPU Temperature
Incoming bytes/sec

Outgoing bytes/sec

MySql Queries/sec



Email validation in php

 
Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner



View previous topic :: View next topic  
Author Message
rajendran



Joined: 04 Mar 2013
Posts: 1
Location: Brampton, Canada

PostPosted: Mon 04 Mar '13 19:41    Post subject: Email validation in php Reply with quote

This is the code for validating your email address in php scripting language.

function checkEmail($email){
if(preg_match("/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/", $email) > 0)
{
return true;
}
else
{
return false;
}
}




rajendran
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner
Page 1 of 1