Posted by Hilarion on 10/26/05 18:18
>>> What reasons can there be that the echo $_SERVER['PHP_SELF'] (between
>>> <?-tags) in the action parameter of a form does not show up in the
>>> resent html-page?
>>
>>
>>
>> Are you sure it is:
>>
>> <?php echo $_SERVER[ 'PHP_SELF' ]; ?>
>>
>> You may try this somewhere on the page:
>>
>> <pre>
>> <?php
>> print_r( $_SERVER );
>> ?>
>> </pre>
>>
>> and check what is there and what is not.
>> If you do not want to show it to users, then change "<pre>" to "<!--"
>> and "</pre>" to "-->".
>
> There is nothing there with print_r( $_SERVER ) ;
Try $HTTP_SERVER_VARS instead of $_SERVER (if it's inside function
or method, then use "global" keyword). If it works that this means
that you are using very old version of PHP. If it's still empty,
then there's something strange with your server settings.
Hilarion
[Back to original message]
|