Jump to content

signin function not working


McBryver

Recommended Posts

Im not sure whats wrong:

 

 

function signin(){    document.getElementById("login_error").innerHTML = "<img src='images/loading.gif' />";        var user = document.getElementById("username_client").value;    var pass = document.getElementById("password").value;        if(user=null){        document.getElementById("login_error").innerHTML = "You must enter a valid username!<br />";    return "err";    }else{        document.getElementById("login_error").innerHTML = "Username Good!<br />";    }    if(pass=null){        document.getElementById("login_error").innerHTML = "You must enter a valid password!<br />";    }else{      document.getElementById("login_error").innerHTML = "Password Good!<br />";      }        }

 

 

function call code:

 

<p><div class="button"><a href='javascript:signin();' style='cursor: pointer;'>Sign In!</a></div></p>

 

 

Error Console in Firefox Displays no Errors However Nothing is happening any help would be cool!

Bryver

Link to comment
https://forums.phpfreaks.com/topic/213769-signin-function-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.