#include #include #include "parse.hpp" void main() { char *query_str = getenv("QUERY_STRING"); Parse list( query_str ); cout << "Content-type: text/html" << endl << endl; cout << "" << endl; cout << "

\n"; cout << "

CGI Decode

\n"; cout << "name = " << list.get_item_n( "name" ) << "
\n"; cout << "action= " << list.get_item_n( "action" ) << "
\n"; cout << "log = " << list.get_item_n( "log", 1, true ) << "
\n"; for ( int i=1; i<=4; i++ ) { cout << "tag (" << i << ") = "; cout << list.get_item_n( "tag" , i ) << "\n"; } cout << "" << endl; }