Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Who can provide onther better method to implement

HI all:

I used boa cgi success in nios2 uclinux.

In my cgi application program only use printf()

example:

printf("Content-type: test/html\n\n");

printf("<HTML><HEAD><TITLE>CGI Test</TITLE></HEAD>\n");

printf("<BODY><H2>CGI test</H2><PRE>\n");

printf("Arguments: %u\n",argc);

for(i = 0; i < argc; i++)

{

printf("Argument %u: %s\n", i, argv[i]);

}

printf("Query string: %s\n", getenv("QUERY_STRING"));

printf("Remote addr: %s\n", getenv("REMOTE_ADDR"));

printf("</PRE></BODY></HTML>\n");

But this method is not good.

Who can provide onther better method to implement dynamic HTML?

thanks a lot.

Alex
No RepliesBe the first to reply