printf(" Valor count: %i",count);
printf("<form action=\"/cgi-bin/webpg101.pgm?bin=4/webpg101101\" ");
printf("method=\"GET\"> ");
printf("<h2>Persisten CGI si funcionan</h2>");
printf("<input type=HIDDEN NAME=BIN VALUE=4>");
printf("<input type=submit value=Execute>");
printf("</form></body></html>");
count++;
}
if(bin == 4)
{
printf("Accept-HTSession: webpg101101 \n");
printf("Content-type: text/html \n\n");
printf("<html><title> Test persistent CGI</title><body>");
printf("<form action=\"/cgi-bin/webpg101.pgm?bin=5/webpg101101\" ");
printf("method=\"GET\"> ");
printf("<h2> The fourth form</h2>");
printf(" Valor count: %i",count);
printf("<h2>Persisten CGI si funcionan</h2>");
printf("<input type=HIDDEN NAME=BIN VALUE=5>");
printf("<input type=submit value=Execute>");
printf("</form></body></html>");
count++;
}
if(bin == 5)
{
printf("Accept-HTSession: webpg101101 \n");
printf("Content-type: text/html \n\n");
printf("<html><title> Test persistent CGI</title><body>");
printf("<form action=\"/cgi-bin/webpg101.pgm?bin=6/webpg101101\" ");
printf("method=\"GET\"> ");
printf("<h2> The fifth form</h2>");
printf(" Valor count: %i",count);
printf("<h2>Persisten CGI si funcionan</h2>");
printf("<input type=HIDDEN NAME=BIN VALUE=6>");
printf("<input type=submit value=Execute>");
printf("</form></body></html>");
count++;
}
(bin == 6)
{
printf("Accept-HTSession: webpg101101 \n");
printf("Content-type: text/html \n\n");
printf("<html><title> Test persistent CGI</title><body>");
printf("<h2> The sixth form</h2>");
printf(" Valor count: %i",count);
printf("<h2>Persisten CGI si funcionan</h2>");
printf("</body></html>");
}
fflush(stdout);
return 0;
}
84 WebProgramming Guide V4R5