You are here: Re: action="<?=$PHP_SELF?>"> « PHP Programming Language « IT news, forums, messages
Re: action="<?=$PHP_SELF?>">

Posted by phpCodeHead on 06/06/07 16:52

On Jun 6, 10:56 am, 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.

not sure your version of php or it's config, but try using
$_SERVER['PHP_SELF']; or set a global variable to $PHP_SELF =
$_SERVER['PHP_SELF']; then reference throughout your app whenever
necessary.

Also, educate yourself a bit more on this subject at http://us.php.net/reserved.variables

hth,

-----------
Gene Kelley
LAMP Web Application Developer
BizFlowDesigns.com
St. Louis, Missouri, USA

 

Navigation:

[Reply to this 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

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