This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

could I use c replace perl in cgi programing(webprogramming?)


Dear gcc programmers:

:

Could we using c replace perl in cgi programming?

I tried a simple c program(although it not compile right, need help on that too, of course)
to parse the name and value it inherate from visitor hit the submit form

------------------------------------------------

#include <stdio.h>

int main()
{
extern char name[][];
extern char value[][];


printf("Content-type: text/html\n\n");
printf("<html><body>\n");
printf("the price fo ", name[1], " equal ", value[1], "\n");
printf("</body></html>");
}

--------------------------------------------------------------
like to see any of you 's opinion
--
Sincere Eric
www.linuxspice.com
linux pc for sale


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]