Re: $PHP_SELF

From: Date: Tue, 30 Sep 2003 02:50:58 +0000
Subject: Re: $PHP_SELF
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-11973@lists.php.net to get a copy of this message
On Mon, 29 Sep 2003, Adam Dear wrote: > I have just installed php. I am new to php. I have read several items(ie. > books, online documentation). I have seen references to a variable called > $PHP_SELF. I have tried to use it in a form, but to no avail. > > Here is a line of code where I have used it: > <form action=<?php echo $PHP_SELF ?>?form=yes method="post"> > > However, when I view the souce of this page, the "action" attribute is > simply: > <form action=?form=yes ..... > The $PHP_SELF variable is not referencing anything. Is there something that > I have not configured properly? $_SERVER['PHP_SELF'] Everything changed when Register Globals got set to a default of OFF, which is a good thing. See the change notes on www.php.net. -- Joe Laffey | Want to convert subnet masks between different LAFFEY Computer Imaging | notations, or figure the number of IPs in a block? St. Louis, MO | Whatmask-It's FREE - www.laffeycomputer.com/wm.html ------------------------------------------------------------------------------

« previous php.install (#11973) next »