This is a multi-part message in MIME format.
------ extPart_000_0009_01C0A04E.690F2F70
Content-Type: text/plain;
charset S-ASCII"
Content-Transfer-Encoding: 7bit
I was going thru the 14th chap of programming ruby..
How do I create forms and html in ruby...
I gave the code given in the book(I am attachin it with the mail)
and I got the following out put
(offline mode: enter name
lue pairs on standard input)
and it came to a prompt asking me to enter name value pairs.
Please advise
John
------ extPart_000_0009_01C0A04E.690F2F70
Content-Type: application/octet-stream;
name est.rb"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename est.rb"
require "cgi"
cgi GI.new("html3") # add HTML generation methods
cgi.out{
cgi.html{
cgi.head{ "\n"+cgi.title{"This Is a Test"} } +
cgi.body{ "\n"+
cgi.form{"\n"+
cgi.hr +
cgi.h1 { "A Form: " } + "\n"+
cgi.textarea("get_text") +"\n"+
cgi.br +
cgi.submit
}
}
}
}
------ extPart_000_0009_01C0A04E.690F2F70--