Ch CGI Toolkit is FREEWARE.
It can be Downloaded at the end of this page.
Ch CGI toolkit is a C++ toolkit for CGI programming. It can run
in Ch across different platforms without
lengthy compile/link/execute/debug cycles.
It integrates seamlessly with the Web server.
You can write your CGI programs and run in Ch without Ch CGI toolkit.
However, Ch CGI toolkit provides easy-to-use CGI APIs. CGI programming in Ch is
simple as you write code in Microsoft ASP or Jave JSP.
Ch CGI is an ideal
application programming interface for various Web applications across different platforms.
The same Ch CGI scripts can run in different platforms with different
Web servers without any modification.
With Ch ODBC, you can write code once
and access any database from any OS.
With Ch CGI and Ch Professional Edition, you can perform
on-line 2D/3D plotting,
on-line 3D graphics,
and
Web-based scientific numerical computing with applications in engineering and science, analysis and design of
control systems, mechanisms design and analysis, and more.
It is easy to deploy CGI based web applications.
For example, the following CGI Ch script can be used to
process fill-out forms on a web server compilation.
#!/bin/ch -g
#include<cgi.h>
main() {
int i, num;
chstrarray name; /* name[i] is a string of char with a passed name */
chstrarray value; /* value[i] is a string of char with a passed value */
class CRequest Request;
class CResponse Response;
Response.begin();
Response.title("CGI FORM test script reports");
num = Request.getFormNameValue(name, value);
if(num==0)
printf("\nNo input from form\n");
printf("\nThe following %d name/value pairs are submitted\n\n");
for(i=0; i < num; i++)
printf("%s=%s\n",name[i],value[i]);
Response.end();
}