title: how to pass variables inside one page
body: <p>I want to know how to pass variables from a form to a php page.</p>
  
  <p>Thanks. </p>
  
  <p>Edit:</p>
  
  <p>I have some input and a submit button in a form. I want my php page to search the database and display a relevant table after I click the submit button. And all the actions here are in one page. </p>
  
  <p>So I want to know how to pass variables from a form to a php script on the same page. I'm sorry for leaving so little detail. </p>
  
  <p>Can you understand my question now? Thanks again. </p>