Ver Mensaje Individual
  #8 (permalink)  
Antiguo 17/09/2008, 11:15
susan_
 
Fecha de Ingreso: agosto-2008
Mensajes: 173
Antigüedad: 15 años, 9 meses
Puntos: 0
Respuesta: pasar variables

no me muestra la variable! o no la pasa!

ya cambie todo a get.
pruebas2.php

Código:
var caracteristica="toolbar=0, scrollbars=1, width=550, height=250, resizable=0, left=450, top=500";

function ventana(boton)
{
if(boton.name=="reque_dev")
window.open("http://localhost/WBS/pruebas.php?nombre=<?php echo $nombre; ?>","",caracteristica);
}
</script>

</head>

<body>
<?php 
$nombre="susan";
?>



<label>&nbsp;Monto:</label>
<input name="monto" type="text" size="20" maxlength="15" />
<form  method="get">
<input name="prueba" type="hidden" value="<?php echo $nombre; ?>" />
<input name="reque_dev" type="button"  value="DV" onclick="ventana(this);" />
</form>
<p>
pruebas.php

Código:
$nombre=$_GET['prueba'];

echo "Si pasó el dato y el nombre es::: ---> ".$nombre;