Prova questo (il nome della popup non deve contenere spazi !!!)
Il trucco è di passare il valore della variabile tosb. Il form non serve anche se l'ho lasciato.
file : test2110b.phpcodice:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> <script language="JavaScript" type="text/javascript"> <!-- function popup() { a = document.forms.mio_form.tosb.value; window.open('test2110b.php?tosb='+a,'SfogliaDatabase','resizable=no,width=400,height=300'); } //--> </script> </head> <body> <form name="mio_form"> <input type="hidden" name="tosb" value="pippo bello"> <input type="button" value="Clicca" onclick="popup()"> </form> </body> </html>
codice:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> </head> <body> <? // o $_GET['tosb'] a secondo della versione di php print $HTTP_GET_VARS['tosb']; ?> </body> </html>

Rispondi quotando