From: "Christopher M." Date: 2012-06-13T09:19:50+09:00 Subject: Re: How can i get the value from a simple html form using ruby? As we tried to tell you in IRC, you are making this way too hard. In PHP, you are already *in* the framework, in ruby, you have a choice of frameworks that make getting form parameters from within your application as easy as the php you quoted earlier: $_POST['bleh']. The way to do this is to choose a framework and follow the directions on that framework. In rails and sinatra, you use the params hash, ie. params[:bleh]. This is as simple as it gets. There is no simpler way to do this. I am not going to write your code for you in the painful manner you are attempting above. Read the sinatra quick start guide, and the myriad examples of small sinatra applications in the wild "example sintra application" should be enough of a google search to get you going there. Once you have the background knowledge to ask good questions, rather than having someone write your code for you, you should come back to IRC and ask away. To reiterate what was said on IRC: 1. If you want it to be as easy as PHP, use a framework such as sinatra. 2. If you insist on doing it the old, outdated and hard way via CGI, you really do need to read a ruby book, the CGI rfc, the HTTP rfc and actually understand how these things work. That is it. --Christopher -- Posted via http://www.ruby-forum.com/.