#include #include #define NUMFIELDS 10 char *fields[NUMFIELDS] = { "pw=","hat=","delfile=","secret=","icecream=","mygrade=","yourgrade=","myclasses=","yourclasses=","comments=" }; int main() { char msg[1024]; char *t; int i; printf( "Content-type: text/plain\n\n" ); fscanf( stdin,"%s",msg ); printf( "\nmsg=[%s]\n\n",msg ); t = strtok( msg,"&" ); while ( t != NULL ) { for ( i=0; i