topical media & game development

talk show tell print

lib-ch-example-ref-wcgi-getFormNameValue.cgi / cgi



  #!/bin/ch 
  /* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
  include <wcgi.h>
  
  int main() {
    class CResponse Response;
    class CRequest Request;
    chstrarray name, value;
    int total;
  
    Response.begin();
    Response.title(L"Test of Request.getFormNameValue");
    printf("<H1> The Result of Test of Request.getFormNameValue </H1>
\n "); total = Request.getFormNameValue(name, value); printf("number of the submitted pairs: \%d <p>\n", total); printf("pairs of name/value: <br> \n"); if (total != 0) while((*name) && (*value)) { fputws(*name++, stdout); printf(" = "); fputws(*value++, stdout); printf(" <br>\n"); } Response.end(); }


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.