title: How to make a html a href link change a php value. Or something that will do something like that
body: <p>I have a spot on my website that I want to use to either show one php file of information or if a link is clicked(not a button) a different display of information is shown.</p>
  
  <p>the idea is to make the link change a value from 0 to 1.</p>
  
  <p>if the value is 0 show page 1
  if the value is 1 show page 2</p>
  
  <p>I am storing the links in a php string. Then displaying either one php file or another based on which link is clicked.</p>
  
  <pre><code>$userlinks = '&lt;a href="user_profile.php?id=' . $userid . '"&gt;Profile&lt;/a&gt; &amp;bull; &lt;a&gt;' .     $ip . '&lt;/a&gt; &amp;bull; &lt;a href="logout.php"&gt;Log Out&lt;/a&gt;';
  </code></pre>
  
  <p>instead of making the Profile link go to user_profile.php, I want the clicking of the link to change a value from 0 to 1. </p>
  
  <p>Is this possible? Thank you.</p>