I have a weird request. I want to make a email login box, however when pressed continue/submit It will take them to the next page. But it will only accept email and no other chars and the email doesn't have to be real. But only email allowed is there a way like only allowing the information that has "'@" in the login box or something? I hope you guys can understand me and help a brudda out. THANKS!!
Never mind, I solved the issue with
Never mind, I solved the issue with
Code:
<script language="javascript">
document.logOn.onsubmit=validate;
function validate(){
var name=document.logOn.pw.value;
if(!name = "[@#$%^*_|]"){
alert("Your email can not have anything other than @#$%^*_| - Play It Straight!");
return false;
}
return true;
}
</script>