By: Jeeva Viewed: 153221 times Printer Friendly Format
new(type = "query")
Creates a new CGI instance.
type specifies which version of HTML to load the HTML generation methods for. The following versions of HTML are supported:
|html4Tr:||HTML 4.0 Transitional|
|html4Fr:||HTML 4.0 with Framesets|
If not specified, no HTML generation methods will be loaded.
If the CGI object is not created in a standard CGI call environment (that is, it can’t locate REQUEST_METHOD in its environment), then it will run in "offline" mode. In this mode, it reads its parameters from the command line or (failing that) from standard input. Otherwise, cookies and other parameters are parsed automatically from the standard CGI locations, which varies according to the REQUEST_METHOD.
Most Viewed Articles (in Ruby )
Latest Articles (in Ruby)
Comment on this tutorial
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews