Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Validate a email adress

    Could some show a script i can install in the following email script to make sure they insert a correct email adress and where to install is at

    Thxs STeve

    <form action="http://207.235.6.119/cgi-bin/nmail.pl" method="POST">
    <input type=hidden name="redir"
    value="http://www.cruisewarehouse.cc/thank.html">


    <input type=hidden name="to" value="Subscribe@cruisewarehouse.cc">





    First Name: <input type=text name="FirstName" size="20"><br>
    Email Adress: <input type=text name="EmailAdress" size="20">
    <P align=center>

    <input type=submit value="Submit Form">

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    UK
    Posts
    102
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if you don't know regexp, you can use the cheap dirty way, which is nowhere near as good
    Code:
    test = document.formname.inputname.value;
    if (test.indexOf("@")==-1) {
    //incorrect
    }


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •