CGI Ruby



Form Data



Form Data 



Name         
Age          
Address      
Sex          M     F name=" Sex">
E-mail address       
             



Create a CGI Script that Will Display the Form Values
#! /ruby/bin/ruby
require 'cgi'
print "Content-type: text/html\r\n\r\n"
cgi=CGI.new
print "Name = "
print cgi[?Name']
print "
"
print "
"
print "Age = "
print cgi[?Age']
print "
"
print "
"
print "Address = "
print cgi[?Address']
print "
"
print "
"
print "Sex = "
print cgi[?Sex']
print "
"
print "
"
print "E-mail Address = "
print cgi[?E-mail']