MsRedImp Posted October 31, 2007 Share Posted October 31, 2007 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 Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted October 31, 2007 Share Posted October 31, 2007 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... Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted October 31, 2007 Share Posted October 31, 2007 just use the header function http://php.net/header well understand dude we cannot write all the code for you Quote Link to comment Share on other sites More sharing options...
MsRedImp Posted October 31, 2007 Author Share Posted October 31, 2007 Thanks I will look into header, I know =P these are my only 2 problems with the whole web site. Up the imps! Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted October 31, 2007 Share Posted October 31, 2007 Up The Mariners... Quote Link to comment Share on other sites More sharing options...
revraz Posted November 1, 2007 Share Posted November 1, 2007 HTML Meta Refresh works good too, which we discussed in your other thread. Thanks I will look into header, I know =P these are my only 2 problems with the whole web site. Up the imps! Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted November 1, 2007 Share Posted November 1, 2007 meta refresh - sorry don't like them and the can be circumvented... Quote Link to comment 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.