ok i can do this

kinkkink serious memberVPS - Virtual Prince of the Server
uhmm i have a forn script that validates an email address.
problem is when it sdends up th alert for a bad address it still logs in when the alert is closed anybody know how to stop the login when the address isnt good?

Comments

  • ChroderChroder Senior Member The Royal RAM
    Have the validation function return false on error, then put in the "return" keyword when calling the function. For example:
    <form action="someaction.php" method="post" onsubmit="[color=blue][b]return[/b][/color] validate();">
    

    If the function returns false, the form will cancel it's submit.
  • kinkkink serious member VPS - Virtual Prince of the Server
    cool chroder tk
Sign In or Register to comment.