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