From: John T Date: 2001-02-27T03:10:45+09:00 Subject: [ruby-talk:11604] This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C0A04E.690F2F70 Content-Type: text/plain; charset="US-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=value pairs on standard input) and it came to a prompt asking me to enter name value pairs. Please advise John ------=_NextPart_000_0009_01C0A04E.690F2F70 Content-Type: application/octet-stream; name="test.rb" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="test.rb" require "cgi" cgi = CGI.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 } } } } ------=_NextPart_000_0009_01C0A04E.690F2F70--