title: Prevent query string tampering
body: <p>I have written a script where I need to pass user information in url as query string to next page but if I alter the passed parameters the actual data related to that page also changes so how to prevent the alteration/tampering of query string. I don't usually use query strings so I don't really know the best way to secure them from tampering.</p>
  
  <p><strong>Usage #1:</strong></p>
  
  <pre><code>&lt;button class="btn btn-blue btn-xs"&gt;
      &lt;i class="fa fa-comments"&gt;&lt;/i&gt;
      &lt;a href="comment.php?u_id='.$row['id'].'&amp;v_no='.$row['vault_no'].'"&gt; Comment&lt;/a&gt;
  &lt;/button&gt;
  </code></pre>
  
  <p><strong>Usage #2:</strong></p>
  
  <pre><code>&lt;form id="form" name="form" method="GET" class="m-t" role="form" action="profile_1.php" autocomplete="off"&gt;
      &lt;!--Field parameters--&gt;
      &lt;input style="vertical-align: middle" type="submit" name = "receive" id="submit" value="Post"  class="button"&gt;
  </code></pre>
  
  <p><strong>This is how I will process the query:</strong></p>
  
  <pre><code>if (isset($_GET['Receive'])) {      
      //receiving get parameters
      $xyz = $_GET['xyz'];
      $abc = $_GET['abc'];
  </code></pre>