From: Brett Simmers Date: 2007-08-06T02:28:13+09:00 Subject: Re: How can I get HTML's varibles in embeded ruby? Zhan feng Wang wrote: > E.g.,I have following variables: > myInput, DataFile,TagFile in the following segment HTML codes. > >
>
>     Select Asn1 File: 
>     Select Asn1-bas File: 
>     
>     
>     
>         
>
> > > > If in PHP, I can easily get them by $p_DataFile, $p_TagFile etc, How can > I get the variables in embeded ruby? > > Thanks > You probably want to use the CGI class: http://ruby-doc.org/core/classes/CGI.html That page has plenty of tutorials on it, but the basics are: require 'cgi' cgi = CGI.new data_file = cgi['DataFile'] That'll give you the value of the DataFile text field. -Brett