#!/bin/ch /* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */ #include <wcgi.h> int main() { class CResponse Response; class CRequest Request; chstrarray value; int total; int i; Response.begin(); Response.title(L"Test of Request.getForms"); printf("<H1> The Result of Test of Request.getForms </H1> <hr>\n "); //get name total = Request.getForms(L"name", value); printf("name is : \n"); for (i = 0; i < total; i++) if (value[i] != NULL) { fputws(value[i], stdout); printf(" <br>\n"); } if (total ==0) printf("NULL"); printf("<p>\n"); //get favorites total = Request.getForms(L"flavor", value); printf("number of selected flavors is : %d <br>\n", total); printf("flavor is : <br>\n"); for (i = 0; i < total; i++) if (value[i] != NULL) { fputws(value[i], stdout); printf(" <br>\n"); } Response.end(); }