From: "Will H." Date: 2010-01-21T22:36:38+09:00 Subject: Re: Sending form data to a text file Jeff Peng wrote: > I wrote and put this script into cgi-bin directory: > > #!/usr/bin/ruby > require 'cgi' > > cgi = CGI.new > user = cgi['username'] > pass = cgi['password'] > > time = Time.now.strftime("%D %T") > cgi.out("text/plain") do > "Time: #{time}\n" + > "User: #{user}\n" + > "Pass: #{pass}" > end > > And access it with such url like: > http://127.0.0.1/cgi-bin/test.cgi?username=test&password=testpass Hi Jeff, Thanks for the code, you posted just after I solved the problem myself. -- Posted via http://www.ruby-forum.com/.