Jump to content

[SOLVED] Help please


Andy-H

Recommended Posts

if(document.form.email.value!=null||document.form.email.value!="")

{

email1 = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9])+(\.[a-zA-Z0-9_-]+)+$/;

if(!email1.test(document.form.email.value ) )

{

alert("Please enter the correct email address");

document.form.email.value="";

document.form.email.focus();

return false;

}

}

You can validate e-mail like this.

Link to comment
https://forums.phpfreaks.com/topic/119084-solved-help-please/#findComment-613247
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.