Re: Migration once again
| From: | R'twick Niceorgaw | Date: | Wed, 04 Jun 2003 19:03:17 +0000 |
| Subject: | Re: Migration once again | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150238@lists.php.net to get a copy of this message | ||
Are you echoing the javascript ? or its just like the way you written below
in your code ? can you include few lines above and below this code ?
My guess is you just enclosed the javascript within php tag. You might want
to take it outside php or echo it.
"ØYstein HåLand" <ha@ematte.se> wrote in message
news:20030604184635.79862.qmail@pb1.pair.com...
> 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
> > >
> > >
> >
> >
>
>