If a user wants to go to profile.php and I assumed that the user is not logged in.
Now i want to redirect the user to login.php and in the login.php will now echo something like YOU MUST LOGIN TO VIEW THIS PAGE and after the user loged in will take the user to the profile.php which the user requested
How will i do that stuff and and also after echoing YOU MUST LOGIN TO VIEW THIS PAGE I will want the echoed content to disappear and show only once so that there will be room to echo login errors.
Can someone Help Thanks
Now i want to redirect the user to login.php and in the login.php will now echo something like YOU MUST LOGIN TO VIEW THIS PAGE and after the user loged in will take the user to the profile.php which the user requested
How will i do that stuff and and also after echoing YOU MUST LOGIN TO VIEW THIS PAGE I will want the echoed content to disappear and show only once so that there will be room to echo login errors.
Can someone Help Thanks
Comment