sometext = cgi['sometext'].to_s

;)

RayZ <rayz / gloria.aaanet.ru> wrote in message news:<15514567426.20020910122144 / gloria.aaanet.ru>...
> Hi!
> Can anyone explain me how can i retrive other field values using
> multipart form with attached file
> 
> for example
> -----------------------------------------------
> <FORM method=post enctype="multipart/form-data"
> action="/cgi-bin/test.rb">
> some field: <input type=text value=sometext>
> attach file: <input name=attach_file type=file >
> <input type=submit value="attach me!" >
> </FORM>
> 
> 
> and then
> 
> [test.rb]
> --------------
> #!/ruby/bin/ruby
> require 'cgi'
> ..
> someFile, = cgi['attach_file']
> data = someFile.read
> 
> 
> how do i get 'sometext' value ?
> any examples?
> 
> thanx.
> 
> __________________________________________________________________________
> 
> Andrew "RayZ" V Rumm | Web Developer | rayz / gloria.aaanet.ru | i(Q #620578
> __________________________________________________________________________