title: Why a button isn't being shown even when php doesn't corrupt it
body: <pre><code>&lt;?php
  
  require 'openid.php';
  try 
  {
      # Change 'localhost' to your domain name.
      $openid = new LightOpenID('localhost');
  
      if(!$openid-&gt;mode) 
      {
  
          if(isset($_GET['login'])) 
          {
              $openid-&gt;identity = 'https://www.google.com/accounts/o8/id';
              header('Location: ' . $openid-&gt;authUrl());
          }
  ?&gt;
  
          &lt;form action="?login" method="post"&gt;
              &lt;button&gt;Login with Google&lt;/button&gt;
          &lt;/form&gt;
  
  &lt;?php
      } 
      elseif($openid-&gt;mode == 'cancel') 
      {
          echo 'User has canceled authentication!';
      } 
      else 
      {
          echo 'User ' . ($openid-&gt;validate() ? $openid-&gt;identity . ' has ' : 'has not ') . 'logged in.';
      }
  }        
  catch(ErrorException $e) 
  {
      echo $e-&gt;getMessage();
  }
  </code></pre>
  
  <p>This question was asked but a big part wasn't answered due lack of testing , the question is that why doesn't the login with google button be shown after a login </p>
  
  <p>note : this is openid and will be redirected to google after its shown and back to the page after logging to google but it doesn't show the button after the login, reason ?</p>
  
  <p>for testing I have uploaded in <a href="http://dota2tradebots.com/googlelogin.php" rel="nofollow">http://dota2tradebots.com/googlelogin.php</a></p>