By: Jeeva Emailed: 1743 times Printed: 2431 times
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.
Be the first one to add a comment
Most Viewed Articles (in Ruby )
Most Emailed Articles (in Ruby)