My website file structure currently looks like this:
- marketplace.php
- cats.php
On marketplace.php I have a 4 categories which link to $_GET variables (e.g marketplace.php?cat=[1-4]).
On the top of the script for marketplace.php, I have a if statement that looks for the cat variable, checks if it is above zero, and so on.
If cat contains a number greater than zero, it will include cats.php and then show data according to that category number.
How do i make it so that people cannot go to cats.php by entering it in their browser?
 
     
     
     
    