title: Nothing is getting displayed on the redirected page when login button is pressed
body: <p>Here is my form page. When login is pressed, it is redirected to checkLogin page but it is empty. No echo is working. </p>
  
  <pre><code>&lt;html&gt;
      &lt;title&gt;User Login Form&lt;/title&gt;
      &lt;head&gt;&lt;/head&gt;
      &lt;body&gt;
  
      &lt;form name="form1" method="post" action="checkLogin.php"&gt;
      &lt;td&gt;
      &lt;table width="100%" border="0" cellpadding="3" cellspacing="1" 
                  bgcolor="#FFFFFF"&gt;        
      &lt;tr&gt;
      &lt;td width="80"&gt;Username&lt;/td&gt;
      &lt;td width="6"&gt;:&lt;/td&gt;
      &lt;td width="300"&gt;&lt;input name="myusername" type="text" id="myusername"&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td&gt;Password&lt;/td&gt;
      &lt;td width="6"&gt;:&lt;/td&gt;
      &lt;td&gt;&lt;input name="mypassword" type="text" id="mypassword"&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
      &lt;td&gt;&lt;input type="submit" name="Submit" value="Login"&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;/table&gt;
      &lt;/td&gt;
      &lt;/form&gt;
  
      &lt;/td&gt;
      &lt;/tr&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is the checkLogin page
   This is not displaying anything.I tried mysql_error but still no display. Please help</p>
  
  <pre><code>&lt;?php
      include("config.php");
      echo "Check Login";
      $myusername=$_POST['myusername'];
      $mypassword=$_POST['mypassword'];        
      $myusername=stripslashes($myusername);
      $mypassword=stripslashes($mypassword);
      $myusername=mysql_real_escape_string($myusername);
      $mypassword=mysql_real_escape_string($mypassword);
      $sql="select j.jobid from jobs j,rcuser r where r.userName='$myusername'and r.password='$mypassword'";        
      echo "Hey".$myusername." ";
      $result=mysql_query($sql);
      while($col=mysql_fetch_array($result)){
              echo "&lt;tr&gt;&lt;th&gt;Job Id&lt;/th&gt;"&lt;/tr&gt;;
              echo "&lt;tr&gt;&lt;td&gt;" . $col['jobid'] . "&lt;/td&gt;&lt;tr&gt;";        
      }
      $count=mysql_num_rows($result);
      echo $count;
      if($count==1){
         session_register("myusername");
         session_register("mypassword");
         session_start();
         if(!session_is_registered($myusername){
              echo "Session expired";        
         }
         echo "is it???";        
      }
      else{
         echo "Invalid Username or Password";
      }
  ?&gt;
  </code></pre>