Here is the code I’m trying to run:
This works fine on my machine.
What error message do you get?
What is in the error-logs of your webserver?
if run run it from a shell in offline-mode,
does it produce sth. like:
···
–
(offline mode: enter name=value pairs on standard input)
Content-Type: text/html
Content-Length: 302
“montana” montana@buc99.bsd.st wrote in message
news:200211261913.gAQJDSPf000658@buc99.bsd.st…
OOps!!
Here is the code I’m trying to run:
#!/usr/bin/ruby -w
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
}
}
}
}
I get an error from this.
Thanks.
SA
What is your error? It is very difficult for anyone in this group to help
you if we don’t know what the problem is.
Having said that though, your code works for me. If you are getting an
error message, it may be because the CGI library isn’t installed on your
machine, or it is not in your library path.
looks like there are some weird binary chars in there or something… try
dos2unix. i joined all the lines together and it worked fine, so there is
some problem with the linebreaks…
-a
···
On Wed, 27 Nov 2002, montana wrote:
OOps!!
Here is the code I’m trying to run:
#!/usr/bin/ruby -w
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
}
}
}
}
I get an error from this.
Thanks.
SA
–
====================================
Ara Howard
NOAA Forecast Systems Laboratory
Information and Technology Services
Data Systems Group
R/FST 325 Broadway
Boulder, CO 80305-3328
Email: ahoward@fsl.noaa.gov
Phone: 303-497-7238
Fax: 303-497-7259
====================================