Re: Migration once again

From: Date: Wed, 04 Jun 2003 18:46:30 +0000
Subject: Re: Migration once again
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-150234@lists.php.net to get a copy of this message
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" <rtwick-lists@utkalika.net> skrev i meddelandet news:20030604183213.59949.qmail@pb1.pair.com... > 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" <ha@ematte.se> wrote in message > news:20030604181944.49274.qmail@pb1.pair.com... > > 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 > > > > > >

« previous php.general (#150234) next »