title: php html Why isn't my form showing on the webpage?
body: <p>I simply cannot understand how and why I am not seeing a form, when opening my site??? I wan a form consisting of bot username, password and a subit box to appear, though I don't see the solution here... </p>
  
  <p>A solution and explaining would be much appreciated.</p>
  
  <pre><code>  &lt;?php
     error_reporting(E_ALL ^ E_NOTICE);
     session_start();
     ?&gt;
  &lt;!DOCTYPE html&gt;
  &lt;!-- 
  --&gt;
     &lt;html&gt;
     &lt;head&gt;
     &lt;meta charset="UTF-8"&gt;
     &lt;title&gt;World Talk Login&lt;/title&gt;
     &lt;/head&gt;
     &lt;body&gt;
     &lt;?php
      $form = "&lt;form action='./login.php' method='post'&gt;
     &lt;table&gt;
     &lt;tr&gt;
     &lt;td&gt;Username:&lt;/td&gt;
     &lt;td&gt;&lt;input type='text' name='user'/&gt;&lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
    &lt;td&gt;Password:&lt;/td&gt;
    &lt;td&gt;&lt;input type='password' name='password'/&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
    &lt;td&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input type='submit' name='loginbtn' value='Login'/&gt;&lt;/td&gt;
  
    &lt;/tr&gt;
    &lt;/table&gt;
    &lt;/form&gt;";            
  
    if ($_POST['loginbtn']){
    $user = $_POST ['user'];
    $password = $_POST['password'];
  
    if ($user) {
    if ($password){
    echo "$user - $password &lt;hr /&gt; $form";
    }
    else
    echo "You must enter your password. $form";
   }
   else
   echo "You must enter your username. $form";
   }
   ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>thanks in advance!</p>