I have a web site with several pages. Page1, Page2, .. etc
I don’t want the user to visit Page2 posting its URL directly in the browser because Page2 should be visited only from Page1. In PHP, what should I code in Page2 to know that the user was before in Page1 and clicked a link or something that brough him or her to Page2? Thanks.
You could use PHP sessions.
page1.php
page2.php