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> Link to comment https://forums.phpfreaks.com/topic/240658-form-doesnt-submit/ 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'/> Link to comment https://forums.phpfreaks.com/topic/240658-form-doesnt-submit/#findComment-1236056 Share on other sites More sharing options...
ueon Posted June 28, 2011 Author Share Posted June 28, 2011 awesome stuff =) works perfectly now Link to comment https://forums.phpfreaks.com/topic/240658-form-doesnt-submit/#findComment-1236089 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.