Posted by mypetprogrammer on 06/07/07 07:41
On Jun 6, 12:45 pm, gbbulldog <gbbull...@googlemail.com> wrote:
> On 6 Jun, 16:56, zoilus <zol...@someplace.org> wrote:
>
> > Can not determine how "<?=PHP_SELF?>" is supposed to work.
>
> > The below is the line of code.
> > <!-- <form name="search" method="post" action="<?=$PHP_SELF?>"> -->
>
> > When the above statement is run the following is the result.
>
> > You don't have permission to access /dev/forms/forms_testing/< on this
> > server.
>
> Erm... why don't you just view the HTML source to see what's in the
> $PHP_SELF variable?
How about checking register globals for the first thing. If you have
it turned off, $PHP_SEKF is a junk variable with no meaning. Use
$_SERVER['PHP_SELF'] to be safe from register globals nightmares.
Spaghetti code starts with register_globals.
~A!
[Back to original message]
|