Re: Netscape and $PHP_SELF?

From: Date: Wed, 09 May 2001 01:10:39 +0000
Subject: Re: Netscape and $PHP_SELF?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-7372@lists.php.net to get a copy of this message
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? >

« previous php.windows (#7372) next »