BigNoseBird.Com's - - - - - All Purpose Form Handler - - - - - This program, bnbform.cgi is designed to allow you to quickly implement your HTML based forms. The program is configured by information you provide in the form itself, so you can get the script to handle your data in a variety of ways without changing your scripts. Without writing one line of perl code, you can do the following (in any combination!): 1.) Submit E-mail to a specified person. 2.) Send the data to a file for easy import into a database program. 3.) Automatically send a resonse to the submitter, with a text file to contain your message. 4.) Define the order the data is printed. 5.) Enforce completion of specified fields. 6.) Define a page for a "Thank you" or an "Oops!" message after the form is submitted. I. GETTING READ TO INSTALL ---------------------------- Included in this zip or tar file you will find the following files: FILE NAME DESCRIPTION --------- ----------- README.TXT The file you are reading! bnbform.cgi The script bnbform.html A sample form mymessage.txt A sample autoreponse message oops.html A sample HTML page for incomplete data thanks.html A sample HTML page for saying thanks! NOTE: PLEASE READ THE Q&A BELOW, IT CONTAINS SOME USEFUL SETUP INFORMATION! In order to install the script, you should only have to find out the answers to the following questions: Q: Where is perl on my server? A: On most systems it is /usr/local/bin/perl but it may be in /usr/bin/perl or /usr/sbin/perl. The very first line of the script says, #!/usr/local/bin/perl This MUST be the first line of the script with nothing including blank lines above it. If your "perl" is not there, edit this line so that it is correct for your system. Q: Where is the sendmail program on my server? A: You will see a line in the script that says, $mail_program="/usr/lib/sendmail -t"; On 99% of the systems I have worked with, that should be fine. If your sendmail is elsewhere, just correct that line in the script. Q: Where is my cgi-bin directory? A: This varies. Please check with your system administrator or system FAQ if you do not know this. Q: How do I call a cgi-bin script from a form? A: On my system, this does the trick: