From: mosscliffe Date: 2006-01-06T07:42:59+09:00 Subject: Re: Newbie - Problem Two - Ruby and Form Variables, re-loading like PHP_SELF 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:
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