How do I make a login with email

Status
Not open for further replies.

Thommy

New Member
Jan 31, 2018
1
0
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
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>
 
Status
Not open for further replies.

Users who are viewing this thread

Top