title: changing of buttons using php
body: <p>I have a webpage that shows a login panel, and a button which enables the user to register themselves to the site.</p>
  
  <p>Once they have registered, it takes them into the site, but the button is still showing as register, I want it to change to My account, which enables the user to edit their profile, and another button to let them logout. This is what I have so far:</p>
  
  <pre><code>&lt;?php 
   if ($_SESSION['client_id']){
   echo'&lt;a class="button-top" href="index.php?action=member_edit"&gt;My Account&lt;/a&gt;'
   echo'&lt;a class="button-top" href="index.php?action=logout_ok"&gt;Logout&lt;/a&gt;'
  }else{
   echo'&lt;a class="button-top" href="index.php?action=member_add"&gt;Register&lt;/a&gt;'
  
   }
  
   ?&gt;
  </code></pre>
  
  <p>But it is completely and totally wrong.</p>