J. Ryan Sobol
1/6/2006 12:23:00 AM
basename() is a PHP function, not a Ruby one.
~ ryan ~
On Jan 5, 2006, at 5:42 PM, mosscliffe wrote:
> Thanks for the replies, and yes PHP_SELF is the name of the running
> current page.
>
> I am sorry to be stupid, but how do I get the form action to execute
> basename(__FILE__) as I did with:
>
> <FORM action="<?php print $_SERVER['PHP_SELF'];?>" method="POST"
>
> Thanks again
>
> Richard
>
> J. Ryan Sobol wrote:
>> Actually, you'll also need to call basename(). So,
>>
>> basename($_SERVER['PHP_SELF'] ) == __FILE__
>>
>> ~ ryan ~
>>
>>
>> On Jan 5, 2006, at 9:03 AM, Edward Faulkner wrote:
>>
>>> On Thu, Jan 05, 2006 at 07:03:34AM +0900,
>>> page77.office@googlemail.com wrote:
>>>> <FORM action="<?php print $_SERVER['PHP_SELF'];?>" method="POST"
>>>> name =
>>>> "Nextrec" >
>>>
>>> If I remember my PHP correctly, $_SERVER['PHP_SELF'] is simply the
>>> name of the currently executing file. The Ruby equivalent is
>>> __FILE__.
>>>
>>> regards,
>>> Ed
>
>