php shopping cart
free shopping cart   shopping cart software

Free Shopping Cart PHP Software


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.


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).


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


There are currently no posts for this topic.

AFCommerce Documentation

High End Website DevelopmentCompletely Free
Dating Service
Copyright 2004 - 2006
AFCommerce Website
And Cart Builder