Posted by zoilus on 06/06/07 22:03
I had been trying this one and a few others without success, until I
used this
// $PHP_SELF=$_SERVER['PHP_SELF']; //r&d
// print "$PHP_SELF"; //r&d
The above worked while others just blanked my php output.
Anonymous wrote:
> zoilus 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.
>
>
> The <?=PHP_SELF?> syntax requires short tags and register globals to be
> on. Both are off on most default installations nowadays. Try this and
> see if that works:
>
> <?php echo $_SERVER['PHP_SELF']; ?>
Navigation:
[Reply to this message]
|