3 posts by 2 authors in: Forums > CMS Builder Community
Last Post: April 19, 2016   (RSS)

This is a very interesting article I found on the W3C Lessons website, and I thought I would share it.  Extremely useful!

http://w3lessons.info/2016/04/13/how-to-verify-and-validate-email-address-in-real-time-using-php/

Enjoy!

Ragi

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

By Damon - April 18, 2016

Hi Ragi,

Thanks for sharing.

We do have the built in isValidEmail function in CMS Builder to check that an email entered if in a valid email format:

if (!@$_REQUEST['email'])                   { $errorsAndAlerts .= "You must enter your email!<br/>\n"; }
else if(!isValidEmail(@$_REQUEST['email'])) { $errorsAndAlerts .= "Please enter a valid email (example: user@example.com)<br/>\n"; }

But that third party service does a whole lot more validation.

Nice!

---------------------------------------------------
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/