I need PHP to open up a new window with a text from a variable.
Here’s what I tried.
echo "<script>
$myWin=window.open('','$myWin','menubar,scrollbars,left=30px,top=40px,height=800px,width=800px');
$myWin.document.write(".$logtext.");
</script>";
but it doesn’t work. any better ideas or suggestions? Thanks! 🙂
First of all $myWin can simply be myWin in JS: