Jump to content

Login


ecabrera

Recommended Posts

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

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

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.