executing C through html

Hi,

I have a C programe which takes input as parameter with argc and argv and
prints the output troug printf().
Now I have created one html form containnig one box and summit
button. I need to attach this html with my C prog. so that I can fill
the in put through box and after prssing the submit button prog should
execute without running a.out on linux terminal.
Could any one suggest how it is possible.

Thanks,,,

One way is via CGI (Common Gateway Interface) which is a standard for external
gateway programs to interface with HTTP servers.

CGI Programming FAQ: Basic Questions

You should also read the FAQ from the w3c organization... especially so you don't create security holes:
WWW Security FAQ: CGI Scripts