html - C Program for Form Processing -
i have no idea how achieve this, have html form, several different elements in it.
for testing, right now, write piece of c code take submitted , print out on screen.
i can write own parsing code - cannot work out how form data print directly screen.
thanks in advance.
assuming have web server configured allow cgi, html form needs written either get or post form data cgi script. can implement cgi script in c process form data.
as starter cgi script, can echo whatever provided in input output.
int main () { int c; puts("content-type: text/plain"); puts("connection: close"); puts(""); while ((c = getchar()) != eof) { putchar(c); } return 0; }
Comments
Post a Comment