Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Block hotmail.com etc. for Contact_Email

Quote Reply
Block hotmail.com etc. for Contact_Email
Hi,

does anyone has an idea how to block/disallow eMail-addresses from hotmail.com/bigfoot.com and other freemail-services for entering into the field Contact_Email ?

Regards,
Manu

Shopping Portal Shop-Netz.de® | Partnerprogramme | Flugreisen & Billigflüge | KESTERMEDIA e.K. | European Affiliate Marketing Forum.
Quote Reply
Re: [ManuGermany] Block hotmail.com etc. for Contact_Email In reply to
You could do this clientside with Javascript.

<head>
<script language="JavaScript" type="text/JavaScript">
<!--
function isEmail(email) {
if (email.value.indexOf("hotmail.com") + "" != "-1") {
return false;
} else if (email.value.indexOf("bigfoot.com") + "" != "-1") {
return false;
} else return true;
}
function isFreeMail(form) {
if (isEmail(form.Username) == false) {
alert("error message");
return false;
}
}
-->
</script>
</head>



<body>
<form name="form" method="post" onSubmit="return isFreeMail(this)">
<p>
<input name="Username" type="text" />
</p>
<p>
<input type="submit" name="add" value="Submit" />
</p>
</form>
</body>



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile