Reply to Re: action="<?=$PHP_SELF?>">

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация