ueon Posted June 28, 2011 Share Posted June 28, 2011 So both of the following forms doesn't do anything when I press enter or "login/register" - it doesn't reload either <form action="index.php" method="post"> <label> <input type="text" name="log_email" onclick='clearMe(this)' id="input_box" value='Email Address' /> </label> <label> <input type="password" name="log_pass" onclick='clearMe(this)' id="input_box" value='Password' /> </label> <label> <input name="login" id='login_box' type="button" value='Log In'/> </label> </form> <form id="register" name="register" method="post" action="register.php"> <label> <input type="text" name="reg_email" onclick='clearMe(this)' id="reg_box" value='Email Address' /> </label><br /><br /> <label> <input type="password" name="reg_pass" onclick='clearMe(this)' id="reg_box" value='Password' /> </label><p align="right"> <label> <input name="login" id='login_box' type="button" value='Register Now'/> </label></p> </form> Quote Link to comment Share on other sites More sharing options...
fugix Posted June 28, 2011 Share Posted June 28, 2011 your submit buttons need to have an attribute of type="submit" not "button" unless you are going to incorporate javascript with them, which it doesnt look like you are <input name="login" id='login_box' type="submit" value='Log In'/> <input name="login" id='login_box' type="submit" value='Register Now'/> Quote Link to comment Share on other sites More sharing options...
ueon Posted June 28, 2011 Author Share Posted June 28, 2011 awesome stuff =) works perfectly now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.