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.
------_ extPart_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.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
------_ extPart_001_01C17677.63980EE0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [ruby-talk:26499] Re: CGI</TITLE>
</HEAD>
<BODY>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">when I use this code........I get an error on the command prompt.......do we get a browser output in Ruby......</FONT>
</P>
<BR>
<P><FONT COLOR="#800080" SIZE=2 FACE="Arial">require "cgi"</FONT>
<BR><FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi=CGI.new("html3")</FONT>
<BR><FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.out{</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.html{</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.head{"\n" + cgi.title{"This is a test"}}+</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.body{"\n" +</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.form{"\n" +</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.hr+</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.h1{"A form"} +"\n" +</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.textarea("get_text") + "\n" +</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.br+</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.submit</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">}</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">}</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">}</FONT>
<BR> <FONT COLOR="#800080" SIZE=2 FACE="Arial">}</FONT>
</P>
<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Suresh</FONT>
</P>
<BR>
<BR>
<UL>
<P><FONT SIZE=1 FACE="Arial">-----Original Message-----</FONT>
<BR><B><FONT SIZE=1 FACE="Arial">From: </FONT></B> <FONT SIZE=1 FACE="Arial">Bambang Purnomosidi D. P. [SMTP:bpdp / 3wsi.net]</FONT>
<BR><B><FONT SIZE=1 FACE="Arial">Sent: </FONT></B> <FONT SIZE=1 FACE="Arial">26 November 2001 17:44</FONT>
<BR><B><FONT SIZE=1 FACE="Arial">To: </FONT></B> <FONT SIZE=1 FACE="Arial">ruby-talk / ruby-lang.org</FONT>
<BR><B><FONT SIZE=1 FACE="Arial">Subject: </FONT></B> <FONT SIZE=1 FACE="Arial">[ruby-talk:26499] Re: CGI</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">On Monday 26 November 2001 7:00 pm, Bhagavatheeswaran Mahadevan wrote:</FONT>
<BR><FONT SIZE=2 FACE="Arial">> Hi all</FONT>
<BR><FONT SIZE=2 FACE="Arial">> I am trying to use CGI with Ruby but I am not able to go ahead with</FONT>
<BR><FONT SIZE=2 FACE="Arial">> it......Could anyone please help me out with it...........</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">What's the problem?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">--</FONT>
<BR><FONT SIZE=2 FACE="Arial">bpdp</FONT>
</P>
</UL>
</BODY>
</HTML>
------_ extPart_001_01C17677.63980EE0--