ecabrera Posted May 16, 2012 Share Posted May 16, 2012 ok this is a loign form like facebook's its on top <form action="login.php" method="POST"> <table> <tr> <td><input type="text" name="email" /></td> <td><input type="password" name="password" /></td> <td><input type="submit" name="submitbtn" value="Login" /></td> </tr> <tr> <td>Keep me signed in</td> <td>Forgot Password?</td> </tr> </table> </form> but i want it so if they get a wrong email or password they to to login.php?login_failed Quote Link to comment https://forums.phpfreaks.com/topic/262583-login/ Share on other sites More sharing options...
Mahngiel Posted May 16, 2012 Share Posted May 16, 2012 but i want it so if they get a wrong email or password they to to login.php?login_failed Neat. Where's your login.php code? Quote Link to comment https://forums.phpfreaks.com/topic/262583-login/#findComment-1345765 Share on other sites More sharing options...
The Letter E Posted May 16, 2012 Share Posted May 16, 2012 ok this is a loign form like facebook's its on top <form action="login.php" method="POST"> <table> <tr> <td><input type="text" name="email" /></td> <td><input type="password" name="password" /></td> <td><input type="submit" name="submitbtn" value="Login" /></td> </tr> <tr> <td>Keep me signed in</td> <td>Forgot Password?</td> </tr> </table> </form> but i want it so if they get a wrong email or password they to to login.php?login_failed if( !$success ){ header('Location: /login.php?login_failed'); } Quote Link to comment https://forums.phpfreaks.com/topic/262583-login/#findComment-1345776 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.