Matt Scripts CGI-BIN / CGIBIN example:

8 Steps to using Matt Scripts program version 1.92:  
Personally, I prefer FormMail © 2001 London Perl Mongers

1.  Copy the FormMail.cgi program to the cgi-bin or cgibin of your server
2.  Chmod the file 755 (if you don't know how to do it, ask someone)
3.  If you want to know, on our server, Perl is located here: /usr/bin/perl
4.  If you want to know, on our server, Sendmail is located here: /usr/sbin/sendmail
5.  Create a Thank you page and call it feedbackthanks.html
6Your_name and email are required fields
7.  Italics below represent your information or data and Red words are notes only
8.  Download Matt Scripts CGI Program Version 1.92 here  - it is NOT a zip file but only named that way
(Use Save or SaveAs.  After downloading the program, change filename to FormMail.cgi and insert your domain name inside of the program on lines 39 and 46. Then do steps 1 and 2 above to make it work)  
Personally, I prefer FormMail © 2001 London Perl Mongers

----------

In your html file that uses a form, place this code below at the beginning of the input statements and remember to put </form> on the end of all of your input statements.

----------

<form method="POST" action="http://yourdomain.com/cgi-bin/FormMail.cgi?"> - call program
<input type="hidden" name="recipient" value="youremail@yourdomain.com"> - form emailed to
<input type="hidden" name="subject" value="Subject of the email sent to you"> - email subject
<input type=
"hidden" name="required" value="Your_name,email,Street,City,State,Zip,Phone, etc"> - required fields
<input type=
"hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT"> - info about user using form
<input type=
"hidden" name="sort" value="order:Your_name,Street,City,State,Zip,Phone,email,etc"> - order displayed in email
<input type=
"hidden" name="title" value="FeedBack Request"> - title of email
<input type="hidden" name="redirect" value="http://yourdomain.com/feedbackthanks.html"> - FULL URL thank you page name

These are not required but are used when no thank you page is used:
<input type=
"hidden" name="return_link_url" value="http://yourdomain.com/"> - used when no thank you page is used
<input type=
"hidden" name="return_link_title" value="Back to Home Page"> - link if no thank you page is used

 Input statements go here

</form>


if you download the FormMail from Longdon Perl Mongers
<input type="hidden" name="recipient" value="contact"> - form emailed to (note, no email address so spiders cannot find you.  This is why I like London Perl Mongers program better, because you can hide your email address