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 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? 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'); } Link to comment https://forums.phpfreaks.com/topic/262583-login/#findComment-1345776 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.