Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/05/2009, 11:44
Avatar de dkmarley
dkmarley
 
Fecha de Ingreso: marzo-2009
Mensajes: 48
Antigüedad: 15 años, 1 mes
Puntos: 0
Respuesta: funcionamiento de pop up/ventana nueva

Buenas he intentado hacerlo pero no me ha resultado, o bueno si pero no xDD haber me lo hace todo de xaxi pero no me abre la ventana me lo muestras en la .html os pongo aqui los 3 ficheros que tengo

HTML
<head>
<SCRIPT LANGUAGE="JavaScript">
function AbrirVentana()
{
ventana = window.open ("../cepdni.php", "ventana", "toobar=no, location=no, top=100, left=100, width=500, height=200");
}
</SCRIPT>
</head>
<body>
<form name="entrada" method="get" action="../cepdni.php">
DNI: <input type="text" name="dni"><br><br>
<input type="submit" value="Consultar" onClick='AbrirVentana();'>
</form>


PHP
En esta no os pongo nada porque solo llamo a la funcion.

Funcion
function condni()
{
$dni=$_GET['dni'];
DepVar($dni);
$consulta="Select nombre from alumnos where dni='$dni';";
$resp=mysql_query($consulta);
echo ("<h3>Informacion del Alumno</h3>");
echo ("<br><table border='1'>");
echo ("<tr><td>Nombre");
while ($registro=mysql_fetch_row($resp))
{
echo ("<tr><td>".$registro[0]);
}
echo ("</table>");
}


Esto es una prueba solamente pero da negativo xDD

Espero que os sirva esto.