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: YesPaul'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
|