hackorama
hackorama
GATE - CGI using C++

CGate is a C++ class which impliments the CGI POST method for processing HTML Forms.

It processes the name value pairs posted from am HTML forms and provides simple interfaces to get the value for any name and for sending results back to the browser.

Get the Code

gate.cpp + gate.h are the files for the CGate class.

maingate.cpp is a sample application which uses the CGate class

Please go through the source code comments in maingate.cpp to find out how to use the CGate class. I'ts as easy as:

CGate* mygate = new CGate();
mygate->gPrintHeader();
cout << "USER :" << mygate->gGetValueFor("USER") << endl;
cout << "AGE  :" << mygate->gGetValueFor("AGE")  << endl;

Following is a demo form uses the maingate sample code


DEMO FOR THE gate CGI PROGRAM
USER: AGE:


Monday, 23-Feb-2004 16:17:47 PST kishan at hackorama dot com