#!/bin/ch /* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */ /* Report in the form of plain text */ #include int main() { int i, num; chstrarray name, value; class CResponse Response; class CRequest Request; Response.setContentType("text/plain"); Response.begin(); printf("CGI FORM test script reports:\n\n"); num = Request.getFormNameValue(name, value); if(num == 0) { printf("No input from FORM\n"); exit(0); } else if(num == -2) { printf("No enough memory

\n"); exit(0); } printf("The following %d name/value pairs are submitted\n\n",num); for(i=0; i < num; i++) printf("%s=%s\n",name[i],value[i]); Response.end(); }