Ciao, ho trovato questo script in rete
E per richiamarlo facciocodice:var win = null; function NewWindow(mypage,myname,w,h,scroll){ LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' win = window.open(mypage,myname,settings) if(win.window.focus){win.window.focus();} }
il problema è che non riesco a far passare variabili di php che sn memorizzate su un formcodice:<form action="/dvd/vota.php" method="get" onclick="NewWindow(this.action,'name','300','220','yes');return false"> <input type="hidden" name="id" value="<?php echo "$id" ?>" >
Come posso risolvere il problema??
![]()
![]()


Rispondi quotando