From: John Joyce Date: 2007-08-06T01:51:51+09:00 Subject: Re: How can I get HTML's varibles in embeded ruby? On Aug 5, 2007, at 2:46 AM, Shai Rosenfeld wrote: > 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 > >
>
>      Select Asn1 File: 
>      Select Asn1-bas File: 
>      
>      
>      
>          
>
> > just a note, but i don't think you want the 'form' action to go to the > file itself (the rhtml) .. it should go to the corresponding action > that > calls that template. > > i believe what you are seeking for is params[:DataFile], > params[:TagFile], etc. > (this may be good for the ruby on rails forum, rather than this plain > ruby forum) http://www.ruby-forum.com/forum/3 > > anyway hth. > happy sunday > -- > Posted via http://www.ruby-forum.com/. > OP didn't say Rails. Could very well be serving some kind of eruby.