#!/usr/bin/env ruby # coding: euc-jp require 'cgi' c = CGI.new(:accept_charset => "EUC-JP") print "Content-type: text/html; charset=EUC-JP\n\n" name = c["namae"] bt = c["blood"] print " Blood type \n" print "

#{name}さんの血液型

\n" print "

#{name}さんは#{bt.upcase}型ですね!

\n" print "\n" print "\n"