topical media & game development

talk show tell print

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



  #!/bin/ch 
  /* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
  include <cgi.h>
  
  int main() {
    class CResponse Response;
    class CRequest Request;
    chstrarray name, value;
    int total;
  
    Response.begin();
    Response.title("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)) printf("\%s = \%s <br>\n", *name++, *value++); 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.