From: Bhagavatheeswaran Mahadevan Date: 2001-11-26T21:36:48+09:00 Subject: [ruby-talk:26503] Re: CGI This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C17677.63980EE0 Content-Type: text/plain when I use this code........I get an error on the command prompt.......do we get a browser output in Ruby...... require "cgi" cgi=CGI.new("html3") 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 } } } } Suresh > -----Original Message----- > From: Bambang Purnomosidi D. P. [SMTP:bpdp@3wsi.net] > Sent: 26 November 2001 17:44 > To: ruby-talk@ruby-lang.org > Subject: [ruby-talk:26499] Re: CGI > > On Monday 26 November 2001 7:00 pm, Bhagavatheeswaran Mahadevan wrote: > > Hi all > > I am trying to use CGI with Ruby but I am not able to go ahead with > > it......Could anyone please help me out with it........... > > What's the problem? > > -- > bpdp ------_=_NextPart_001_01C17677.63980EE0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [ruby-talk:26499] Re: CGI

when I use this = code........I get an error on the command prompt.......do we get a = browser output in Ruby......


require = "cgi"
cgi=3DCGI.new("html3")
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
        =         =         =         }
        =         =         =         }
        =         =         =         }
        =         =         =         }

Suresh



------_=_NextPart_001_01C17677.63980EE0--