Jump to content

Open a new page?


MsRedImp

Recommended Posts

Hey guys, I have a small problem, this is my current script:

 

{
$_SESSION['login'] = $_POST['login'];
$login='You are now logged in <b>' . $_SESSION['login'];
}
else
{
$login= 'Wrong user name or password.';
}

 

If the user name or password is incorrect, it will just display Wrong user name or password. But what I want it to do is have the browser open a new page if it is incorrect, for example incorrect.php. Which will then display an incorrect user name or password message. This shouldn't be too complicated, I just have no idea how to go about it. Any help is much appreciated, thank you :)

Link to comment
https://forums.phpfreaks.com/topic/75522-open-a-new-page/
Share on other sites

If you are a Lincoln City Fan then....

 

It can't be done - you are over stretching your tiny little mind...

 

Otherwise...

 

You shoudl really think and plan your app more before you start....

 

I have a login script which posts to the same page - if my filtered data input checks out I either show success or simply send a header to send the to another page (use the latter if they have requested a secure page so I can redirect back to it after login) OR show the form again with any error messages...

Link to comment
https://forums.phpfreaks.com/topic/75522-open-a-new-page/#findComment-382052
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.