Re: Netscape and $PHP_SELF?

From: Date: Wed, 09 May 2001 04:55:13 +0000
Subject: Re: Netscape and $PHP_SELF?
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-7373@lists.php.net to get a copy of this message
I've experienced this - i think its a 'feature' of Netscape 4.7x which doesn't seem to exist with Netscape 6 or IE4+. Ensure that you are using globals. I think its because IE inserts a 'current path/file' into URLS if only "?asdadsa" exists as an URL. Siggy ----- Original Message ----- From: "Chris Boothe" <chris@boothe.com> To: "Mike Flynn" <mike@mikeflynn.net> Cc: <php-windows@lists.php.net> Sent: Wednesday, May 09, 2001 1:10 PM Subject: Re: [PHP-WIN] Netscape and $PHP_SELF? > I know what you are saying it is a bit odd. > > The problem is that > <a href=\"$HTTP_HOST$PHP_SELF?id=$id&act=v\">$id</a> > > is being called within a function and the $HTTP_HOST, etc. seem to be set to > null within the function. > > Thanks, > > > Chris Boothe > chris@boothe.com > ----- Original Message ----- > From: "Mike Flynn" <mike@mikeflynn.net> > To: "Chris Boothe" <chris@boothe.com> > Sent: Tuesday, May 08, 2001 6:58 PM > Subject: Re: [PHP-WIN] Netscape and $PHP_SELF? > > > > $PHP_SELF is on the server side, since PHP is a server-side scripting > > language. The user's browser has no bearing on the value $PHP_SELF gets > > because it is all done on the server before the page even reaches the > > user. Try viewing the source in the two different browsers and confirming > > that it really is different and doesn't just appear that way from the > > browser window? > > > > -Mike > > > > At 11:22 PM 5/7/01 -0400, you wrote: > > >My script works fine in IE 5.5 however a hyperlink is missing the script > > >name when it is displayed in Netscape Navigator 4.77. > > > > > >echo "<td align=\"center\"><a > href=\"$PHP_SELF?id=$id&act=v\">$id</a></td>\n"; > > > > > >Instead of view.php?id=1&act=v I get ?id=1&act=v > > >which doesn't work obviously. > > > > > >Thanks, > > > > > >Chris Boothe > > >chris@boothe.com > > > > Today's alienated gem: > > "Send your favorite mom lots of love and affection, free of shipping > > charges!" -- Seen on a shopping site > > > > -=- Mike Flynn - Burlington, VT -=- > > mike@mikeflynn.net http://www.mikeflynn.net/ * Give > > blood * > > Wouldn't the free market, in its true form, be anarchy? > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.windows (#7373) next »