topical media & game development
lib-ch-example-ref-cgi-URLEncode.ch / ch
#!/bin/ch
/* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
include <stdio.h>
include <cgi.h>
int main() {
class CResponse Response;
class CRequest Request;
class CServer Server;
chchar *value;
Response.begin();
Response.title("The Result of Server.URLEncode</title> \n");
printf("<H1> The Result of Server.HTMLEncode</H1>
\n ");
value = Request.getForm("URLToEncode");
if (value != NULL)
printf("\%s", Server.URLEncode(value));
else
printf("Please input the URL for encode first \n <br>");
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.