Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/10/2008, 17:09
SoutlinK
 
Fecha de Ingreso: junio-2007
Mensajes: 189
Antigüedad: 16 años, 10 meses
Puntos: 3
Respuesta: Pasar datos mediante URL

Prueba con esto

Código php:
Ver original
  1. <script language="javascript">
  2. function mandar()
  3. {
  4.  var valcampo1=parseFloat(document.getElementById('campo1').value);
  5.  var valcampo2=parseFloat(document.getElementById('campo2').value);
  6.  var valcampo3=parseFloat(document.getElementById('campo3').value);
  7.  var urldata = "?campo1=" + valcampo1 + "&amp;campo2=" + valcampo2 + "&amp;campo3=" + valcampo3;
  8.   window.open("hija.php" + urldata +"","","");
  9. }
  10. </script>
  11.  
  12.  
  13.   <input type="text" name="campo1" id="campo1" />
  14.   </label>
  15.   <label>
  16.   <input type="text" name="campo2" id="campo2" />
  17.   </label>
  18.   <label>
  19.   <input type="text" name="campo3" id="campo3" />
  20.   </label>
  21.   <label>
  22.   <input type="button" name="button" id="button" value="Procesar" onclick="mandar()"/>
  23.   </label>