It sounds like you already have a web page with a "form" containing a "submit" button correct? Usually the purpose of this is to take data (input) from a user using your web page and doing something useful with it (like insert it into a database, email a message etc). I assume you already know all of the pieces up to this point.
Are you using an Apache based web server? If so you can use use Perl, a shell script, C, or really any other language to create a CGI program to take the data from your form and do something with it. However, my personal favorite is PHP (which is not a CGI program) or Perl (which may or may not be a CGI program depending on if you use modperl).
I would suggest you start with PHP as I believe it to be the easiest to learn (and just as good to use if not better in many cases). You can have a single PHP file that will generate the form and do something with the data when you click on the submit button. There are a million resources out on the internet that can be found with a simple search on google. I would suggest browsing over
http://www.phpbuilder.com and
http://www.php.net (which is the ultimate reference and the main site for PHP itself).
What do you want your program to do? I could write a simple example for you or point to you a place where you can probably just download the code.
It is helpful if you have a good working knowlege of HTML (which FORM is a part of). For examples of HTML programming using forms search google for "html forms tutorial". For using HTML forms in PHP scripts search google or one of the previous links for "php forms tutorial" should dig up some good info.
[ January 17, 2003: Message edited by: void main ]