From: Robert Klemme Date: 2010-03-12T20:57:00+09:00 Subject: Re: (noob) Help with variables 2010/3/11 James Dewey : > Robert Klemme wrote: >> Not sure what you mean by "grab variables".  If you need to evaluate >> HTML form variables you can use >> http://www.ruby-doc.org/core/classes/CGI.html >> >> >> Kind regards >> >> robert > > Basically I want to be able to get variables from posting forms. > > In PHP I would want to do something along the lines of > >
> > >
> > then on somepage.php use > > The var on the last page was > > Only using ruby; in the article you linked I see CGI::Query that could > probably work if I use the GET method for the form instead of the POST > method; is there a way to use POST like shown with the php example? Google for "ruby cgi post" reveals this as first hit: http://www.tutorialspoint.com/ruby/ruby_web_applications.htm Note: Ruby will take care of GET and POST methods automatically. There is no separate treament for these two different methods. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/