windows.open com PHP
Prezados, fiz o seguinte.
abreja.php
<html>
<body>
<head>
<script>
function abre(){
open("teste.php?tst","janela","location,width=250,height=100");
}
</script>
</head>
<form method="get">
<input type="text" value="teste" name="tst" />
<input type="submit" onclick="abre()" value="Abre" />
</form>
</body>
</html>
teste.php
<?php
$tst = $_GET["tst"];
echo $tst;
?>
Alguem poderia me dizer o que está faltando para isto funcionar?!
Agradeço a ajuda!!!
Discussão (1)
Carregando comentários...