title: PHP , HTML , how to show a form on click on link?
body: <p>I'm beginner to PHP and HTML
  now I'm trying to build Login and Register System ...
  Assuming that on my home page I have two forms and I want them to appear just if the user clicked on a word "LOGIN" , or "REGISTER"</p>
  
  <p>so I wrote a php code like that:</p>
  
  <pre><code>&lt;?php
  switch ($x)
  {
      case 'register' :
  
  ?&gt;
          &lt;form action="login.php" method="POST"&gt;
          &lt;/form&gt;
  
  &lt;?php
      break;
  
      case 'login':
  ?&gt;
          &lt;form action="register.php" method="POST"&gt;
          &lt;/form&gt;
  &lt;?php
      break;
  }
  ?&gt;
  </code></pre>
  
  <p>Now I wrote a html code like that :</p>
  
  <pre><code>&lt;h1&gt;Click here to &lt;a href =""&gt; Login&lt;/a&gt; or &lt;a href =""&gt; Register&lt;/a&gt;&lt;/h1&gt;
  </code></pre>
  
  <p>So ,  at <code>&lt;a href =""&gt;</code> how can I make <code>x</code> equals to <code>'login'</code> or <code>'register'</code> ?</p>