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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.