
a janela e javascript....
obrigado desde ja!!!
-----------princ.php----------------------
<html> <input type=button value="+" onClick="show_key('<?php echo $DD; ?>', my2frame.loc2); return false" onMouseOver="window.status='List of Keywords'; return true"> <iframe src="checkk.php" frameborder="1" width="600px" align="left" name="my3f" id="my3f" height="130px" scrolling="yes"></iframe> </html>
<script language="JavaScript"> <!-- function show_key( kSec, kList) { keyWin = window.open( "", "photo", "width=600,height=450,status,scrollbars,resizable,screenX=20,screenY=40,left=20,top=40"); keyWin.document.write('<html><head><title>List of Keywords</title></head>'); keyWin.document.write('<body bgcolor=#CECCFF text=black link=orange vlink=red>'); keyWin.document.write('<center>'); keyWin.document.write('<form method="POST" action="checkk.php">'); ................ for (i = 0;i < Math.round(num1/3);i++) { keyWin.document.write('<STRONG><font face="Courier" size="-1">- '+kList[i][0]+'</font><STRONG><INPUT type="checkbox" name="checkk[]" value="'+kList[i][0]+ '"><br>'); } ................ keyWin.document.write('<input type="submit" align="center" value="associate with the document" onclick="window.parent.my3f.location.reload();">'); /*Ja experimentei ainda document.getElementById('my3f').reload(); */ keyWin.document.write('</form>'); keyWin.document.write('<p></font></body></html>'); keyWin.document.close(); } //--> </script>------------------checkk.php------------------
<html> <head></head> <body> Keywords: //isto aparece sempre, o resto so aparece se abrir checkk.php na propria janela popup <?php if(isset($_POST["checkk"])) { $options = $_POST['checkk']; $options_text = implode(', ',$options); echo 'Opções escolhidas: '.$options_text; } ?> </body> </html>