#!/usr/bin/env ruby require 'cgi' cgi = CGI.new("html4") print("Content-type: text/html; charset=EUC-JP\n\n") studentid = cgi["studentid"] studentname = cgi["studentname"] comment = cgi["comment"] print("\n") print("
\n") print("学籍番号: %s\n
",studentid) printf("名前: %s\n
",studentname) printf("%s\n
",comment) print("\n") print("\n")