topical media & game development
lib-ch-example-ref-cgi-getForm.cgi / cgi
#!/bin/ch
/* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
include <cgi.h>
int main() {
class CResponse Response;
class CRequest Request;
chchar *value, *name;
Response.begin();
Response.title("Test of Request.getForm");
printf("<H1> Test of Request.getForm </H1>
\n");
//get names
name = Request.getForm("name");
printf("name is : \%s <p>\n", name ? name : "NULL");
//get favorites
value = Request.getForm("flavor");
printf("flavor is : \%s <p>\n", value ? value : "NULL");
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.