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 &quot;cgi&quot;</FONT>
<BR><FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi=CGI.new(&quot;html3&quot;)</FONT>
<BR><FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.out{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.html{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.head{&quot;\n&quot; + cgi.title{&quot;This is a test&quot;}}+</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.body{&quot;\n&quot; +</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.form{&quot;\n&quot; +</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.hr+</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.h1{&quot;A form&quot;} +&quot;\n&quot; +</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.textarea(&quot;get_text&quot;) + &quot;\n&quot; +</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.br+</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#800080" SIZE=2 FACE="Arial">cgi.submit</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#800080" SIZE=2 FACE="Arial">}</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#800080" SIZE=2 FACE="Arial">}</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR="#800080" SIZE=2 FACE="Arial">}</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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:&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Arial">Bambang Purnomosidi D. P. [SMTP:bpdp / 3wsi.net]</FONT>
<BR><B><FONT SIZE=1 FACE="Arial">Sent:&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Arial">26 November 2001 17:44</FONT>
<BR><B><FONT SIZE=1 FACE="Arial">To:&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Arial">ruby-talk / ruby-lang.org</FONT>
<BR><B><FONT SIZE=1 FACE="Arial">Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&gt; Hi all</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; I am trying to use CGI with Ruby but I am not able to go ahead with</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; 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--