May be this will fix ? myWin=window.open(\"<?= $_SERVER['PHP_SELF']?>?skrivut=yeah&target=$target\",\"printout\",\"scrollba rs=yes,status=yes,screenX=0,screenY=0,WIDTH=640,height=500 \");
<?= $_SERVER['PHP_SELF']?> : You need to enclose $_SERVER["PHP-SELF"] with <?= ?> tags to be parsed by php. "ØYstein HåLand" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Now when I've learned that $_SERVER['PHP_SELF'] is correct and > $_SERVER[PHP_SELF] is wrong I wonder why the following code > <SCRIPT LANGUAGE=\"JavaScript\"> > <!--// > function openPrintCloseWindow(){ > > myWin=window.open(\"$_SERVER['PHP_SELF']?skrivut=yeah&target=$target\",\"pri > ntout\",\"scrollbars=yes,status=yes,screenX=0,screenY=0,WIDTH=640,height=500 > \"); > } > //--> > </SCRIPT> > parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or > T_VARIABLE or T_NUM_STRING > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php