This is a discussion on "[SOLVED] PHP Logout Message when redirect" within the PHP Forum section. This forum, and the thread "[SOLVED] PHP Logout Message when redirect are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] PHP Logout Message when redirect
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Re: [SOLVED] PHP Logout Message when redirect
Not to sure what you mean, perhaps a line break(<br> or <br />)
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: [SOLVED] PHP Logout Message when redirect
hello well when i login to my account and press the "about us" link which is protected it still says "you need to login to view this content"
|
|
||||
|
Re: [SOLVED] PHP Logout Message when redirect
Well if it is protected then it would say that wouldn't it?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
what even if i am Logged in?.
|
|
||||
|
Re: [SOLVED] PHP Logout Message when redirect
Oh strange. Umm have you get session_start() somewhere on your page above that code?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: [SOLVED] PHP Logout Message when redirect
Yes i have
<?php session_start(); ?> before any html code and php code so right at the top of the page, and when i click the about us page when logged in it doesnt go to the page just goes to the index.php page again and just says "you need to login to view content" so do you want to see the whole of the index.php page and the aboutus.php page to help you more. Thanks Aaron |
|
||||
|
Re: [SOLVED] PHP Logout Message when redirect
Can I see your login script aswell as those two please?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: [SOLVED] PHP Logout Message when redirect
ok so you want to see the login.php page as well yes
|
|
|||
|
Re: [SOLVED] PHP Logout Message when redirect
here is the login.php, aboutusshop.php and the index.php attached to this document.
login.php
Aaron Last edited by Aaron1988; Nov 19th, 2007 at 18:51. |
|
||||
|
Re: [SOLVED] PHP Logout Message when redirect
On contact us, you still have to start the session:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: [SOLVED] PHP Logout Message when redirect
what page lol cause i cant see it on the contact us page. lol
|
|
|||
|
Re: [SOLVED] PHP Logout Message when redirect
Done mate
Cheers Aaron |
|
||||
|
Re: [SOLVED] PHP Logout Message when redirect
wherever it says welcome admin, just add a <br> to that string.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: [SOLVED] PHP Logout Message when redirect
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: [SOLVED] PHP Logout Message when redirect
Ok, Cheers mate
Thanks for the help. |
|
||||
|
Re: [SOLVED] PHP Logout Message when redirect
You're welcome! good luck with this!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: [SOLVED] PHP Logout Message when redirect
Thanks, and cheers also one question how can i have the login box appear on the index.php page cause i think it will look much much better.
Cheers Aaron |
|
||||
|
Re: [SOLVED] PHP Logout Message when redirect
Just copy the form part to the place where you want it to appear on the index.php page, and change the target in the form tag to: target="login.php".
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|