Parragh Szabolcs
1/27/2007 9:30:00 AM
Alin Popa írta:
> I have one ruby script that receive some data from one html page
> POST/GET.
>
The easy way is to make a new CGI object in your script, that mod_ruby
runs, and ask for the parameters, POST-ed ones will be there, too.
E.g: in your ruby script file:
require 'cgi'
cgi = CGI.new
get_data(cgi)
def get_data(cgi)
user = User.new
User.name = cgi['name']
User.age = cgi['age']
...
end
> I want to display or use in other scope these parameters.
> How can this be done ?
>
> Thanks in advance.
>
> Alin.
>
>
--
Parragh Szabolcs
e-mail: parragh@dayka.hu
web: parszab.nir.hu