title: How to pass value of current PHP file to another PHP file by clicking a button?
body: <p>I'm trying to link one php file to another one. The first file, which is a query result of one mysql command, contains introduction of all the products.</p>
  
  <p><a href="https://i.stack.imgur.com/0QUkH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0QUkH.png" alt="enter image description here"></a></p>
  
  <p>When the "Details" button is clicked, I want the page to be redirected to another php file, which accepts the query result (ID, name) from the first file and output the detailed information.</p>
  
  <p>Now I'm stuck at the "button" step. Could anyone help me to link the two files?</p>
  
  <pre><code>&lt;div&gt;&lt;button href = "Product_details.php" type="submit" name="Details" class="btn btn-default"&gt;Details&lt;/button&gt;&lt;/div&gt;
  </code></pre>