Using
Manic's FormCGI script FormCGI takes form input and emails you or writes out to a file, or both. FormCGI is a more flexible replacement for our Mailform and Fileform scripts. Advanced options include required fields, and regular expression matching. Advanced users may wish to skip to the complete list of form options. Sample Form processor: When the submit button is pressed (above), Manic's form.cgi script emails the form input (information about the topping and extra cheese) to the destination email address or writes out to a designated file (or both) . The destination email address can either be user-specified (as above), or hard-coded. You may also have this information written out to a file instead of being emailed. Try the form above! You should receive an email which looks something like this:
Using FormCGI to email results: Using form.cgi is straightforward. Simply use the following code fragment, and build your form and HTML around it:
You must specify "to" and "from" email addresses, replace "you@yourdomain.com" with your actual email address, and select any subject which you like to replace "My subject goes here". Use the following code fragment if you want to have the results of your form written to a file instead of being emailed to you:
Replace "XXX" with a name that you would like to use. The results will be written out to a file named "XXX.fileform.txt", this file will appear in your /cgi-out which is located up one directory from your /htdocs (default webroot) directory. If you would like to be notified when a submission has been placed in the file, add the following line:
Replace "you@yourdomain.com" with your email address. You will then receive an email letting you know that you have a submission, however the actual data submitted will only be written to the file. |
Main | Signup | Hosting | Design | Webmaster Resources | Contact Us!