php shopping cart
free shopping cart   shopping cart software

Free Shopping Cart PHP Software

afc_check_for_valid_email_address

Back to Functions List
This Function Has Been Available Since:
(AFCommerce v 2.1,     Functions v 1.1)

Checks to see if a user has entered a valid email address.

Description

bool = afc_check_for_valid_email_address (email)

This function checks to see if an email address is valid by checking that it has one "AT" symbol (@), at least one period, and is at least 5 characters long (counts all characters, including the period and @ symbol).


Parameters

email (string) - The email address variable that is inputed on a html form, or any feature you build which requires you to check for a valid email address.

Return Values

Returns true if the email address is valid, false if it is not.

Open Source: Yes

Paul's Examples


if (!afc_check_for_valid_email_address ($email)) { $errorflag = 1; }



if (afc_check_for_valid_email_address ($email)) {
// valid email, so do something here
}


Back to Functions List




afc_check_for_valid_email_address

There are currently no posts for this topic.











AFCommerce Documentation


High End Website DevelopmentCompletely Free
Dating Service
Copyright 2004 - 2006
www.afcommerce.com
AFCommerce Website
And Cart Builder