#include "CGI.h" int main() { CGI cgi ; // constructor does nothing /* Let's start by defining a small form ... */ cgi.define(4, // a FORM with four elements "foo:input:Hello World:12:12" , // an input with default value "Hello World", // size and maxlength 12 "bar:password:secret" , // an input of type PASSWORD with default value // "secret", and no size parameters set. "baz:select:option2" , // a popup menu with default value "option2" "OK:submit:Hit Me!" // a submit button labelled "Hit Me" ) ; /* We can implicitly add elements (we didn't need to call define() at all). */ String wombat = "wombat" ; cgi["animal"] = new form_input(wombat) ; /* The popup menu isn't fully defined by the above. The following lines will turn it into a