title: php page accessible only by passing through another php page
body: <p>I am looking to develop a website containing stages. I want for example to pass by the stage 2 only when i click on the finish button in the page of stage 1 so the stage 2 page  can't be accessible by its url or whatever only if the user  pass by another page. </p>
  
  <p>Is there a method to do this ??? i am a beginner in security so please try to help me, thanks in advance coders</p>