Sorry, that is no help. You will see that I have escaped all double quotation marks since the javascript is inside a php-script. The problem is, if I use $_SERVER[PHP_SELF] I get no errors.... (yepp, error_reports=E_ALL)
"R'Twick Niceorgaw" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > 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