Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/05/2008, 16:57
a2a2
 
Fecha de Ingreso: marzo-2008
Mensajes: 303
Antigüedad: 16 años, 1 mes
Puntos: 4
Re: Algo básico....

Pues en el html defines un form que tendra un <input> para que desde la funcion datos() le pongas el valor de "val" y despues simplemente llamas al submit del form. Ejemplo:

Codigo HTML:
Código:
<form id="foForm" action="http://www.tuweb/submit.php" method="post">
  <input type='hidden' name='mipractica' id='mipractica'>
</form>
Codigo Javascript:
Código:
function datos()
{
  var variable = window.parent.frames["kit_superior"].window.document.getElementById("practica");  
  var val = variable.options[variable.selectedIndex].text;
  document.getElementById("mipractica").value = val;

  l_form = document.getElementById("foForm");
  l_form.submit();
  return true;
}
La funcion datos invocará a tu programa submit.php el cual leerá la variable "mipractica" con:
$practica = $_POST['mipractica'];