how to hidden this form if user login to my site?
<pre><code>&lt;?php
ob_start();
session_start();
     /// if you registered previuos and enter to this page go to admin.php
if (isset($_SESSION['uname']) and isset($_SESSION['pname'])) {
 //// i want to enter login and pass filed here to hidden

}

?&gt;



                ///this is the form i want to be hidden if user login

  &lt;form action="login.php" method="post" &gt;
  &lt;table width="171" border="0"&gt;
  &lt;tr&gt;
    &lt;td width="97"&gt;
    &lt;input class="put" name="uname"  type="text" size="10" /&gt;    &lt;/td&gt;
    &lt;td width="64" align="right" class="text_un"&gt;username&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;
    &lt;input  type="password" size="10" name="password" /&gt;&lt;/td&gt;
    &lt;td align="right" class="text_pw"&gt;password&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td align="right" valign="top"&gt;&lt;input class="button" type="submit" name="button" id="button" value="enter" /&gt;&lt;/td&gt;
  &lt;/tr&gt;

  &lt;/table&gt;
  &lt;/form&gt;



&lt;?php
ob_end_flush();
?&gt;
</code></pre>
