title: How to find out which page is sending the $_POST form data?
body: <p>I have to write a quiz application in which I have different pages which send the selected answers to a 'results.php' which then queries the database to the related table to compare the answers with the 'answerkey' table.</p>
  
  <p>I want to selectively query different tables from a database depending on which page the post data came from. </p>
  
  <p>Say if the data came from 'functions.php', i would query the 'functions' table.</p>
  
  <p>How can this be implemented?</p>