I have the following files with flow:
index.html -> login.php -> displayinbox.php
The login.php files confirms the users from database and redirects to displayinbox.php file.
The problem is that if someone just types the direct link to the displayinbox.php page, the script in the page runs.
How can i stop this from happening? I tried the 'define' and 'defined' method, but that just works for the included files i guess. any help?