From: "J. Ryan Sobol" Date: 2006-01-06T09:22:46+09:00 Subject: Re: Newbie - Problem Two - Ruby and Form Variables, re-loading like PHP_SELF 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: > >
> 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: >>>> >>> 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 > >