title: How to add parameters to URL to show different content on the same page?
body: <p>I'm currently doing a WordPress project, and on one of the pages I have a form on that page which checks if the user inputted data is in the database. On submit I would like to add parameters to the URL of the same page, (i.e ?page=1) and show different content depending on the parameter of the url.</p>
  <p>I have tried adding the parameters through the form's action attribute.</p>
  <pre><code>&lt;form action=&quot;form.php?page=1&quot; method=&quot;post&quot; id=&quot;orderinfo&quot;&gt;
  </code></pre>
  <p>But this leads to the following:</p>
  <p><a href="https://i.stack.imgur.com/bR6k1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bR6k1.png" alt="enter image description here" /></a></p>
  <p>Where instead of adding parameters to the current page, it seems to create a new page.</p>
  <p>Am I even going about this the right way?</p>
  <p>Thanks.</p>