Ruby 读取 HTML 页面参数

#!/ruby/bin/ruby
require 'cgi'
print "Content-type: text/html \n\n"
cgi = CGI.new
print "Name = "
print cgi['Name']
print"<br>"
print"<br>"
print "Type = "
print cgi['Type']

编程技巧