hola a todos, hay algo q me hace falta y es, trabajar con los datos de un form llamado clave.php,

Mas exactamete con la la informacion almacenada en la variable $cod, quiero llevarla a un marco q se llama sup.php que se encuentra en un conjunto de marcos llamado tabla.php

Alguien me puede decir como lo hago

Hay pongo el codigo, por si alguien me puede colaborar

Código :

<title>Login</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
.Estilo1 {
   font-size: x-large;
   font-weight: bold;
}
body {
   background-color: #FFFFFF;
}
-->
</style>
<form method="post" action="clave.php">
<div align="center">
  <table width="263" border="2" bordercolor="#000000" bgcolor="#FFFFFF">
    <tr>
      <th width="251" scope="col"><div align="center" class="Estilo1">Validaci&oacute;n de Usuarios</div></th>
    </tr>
  </table>
</div>
<div align="center">
  <p>&nbsp;  </p>
  <table border="2" bordercolor="#000000" bgcolor="#66FFCC">
    <tr>
      <th scope="col">Codigo:</th>
      <th scope="col">        <div align="center">
        <input name="cod" type="text" size="16" maxlength="12">
      </div></th>
    </tr>
    <tr>
      <td><div align="center"><strong>Contrase&ntilde;a</strong></div></td>
      <td><div align="center">
        <input name="cont" type="password" size="16" maxlength="12">
      </div></td>
    </tr>
  </table>
  
  <p>
    <input type="submit" id="ingresa" name="ingresa" value="Ingresar">
<?
  $link= mysql_connect('localhost','user','pasw');
  mysql_select_db('name_db');
  
  $mensaje="INGRESE LOS DATOS";
  $usuario=$cod; 
  $pass=$cont; 
  include("info.inc");
  
  $result=mysql_query("select codigo from docente where codigo='$usuario'and contraseña='$pass'" , $link);
  $row=mysql_fetch_array($result);
  $mensaje="INGRESE LOS DATOS";
   if($row)
 {
        //Hemos encontrado al usuario
   $nom_pro=cont;
   header ("location:http://127.0.0.1/colegio1/tabla.php");
   
   }
   else
   {  
  // header ("location:http://127.0.0.1/colegio/clave.php");
   }
   mysql_close($link);
?>
</p>
</div>


el anterior es el codigo de clave quiero llevarlo al marco sup, pero no lo puedo llevar y utilizarlo ya que me presenta un problema porque hay dos marcos.