¿Cómo ocultar este formulario si el usuario inicia sesión en mi sitio?

<?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

}

?>



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

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

  </table>
  </form>



<?php
ob_end_flush();
?>

Respuestas a la pregunta(3)

Su respuesta a la pregunta