ROCKCI HOME 
DIY Virtual Servers 
 

User Manual   
Chapter 1 Introduction 
Chapter 2 Getting Started 
Chapter 3 Features 
Chapter 4 Security 
Appendix A Administrative 
Appendix B add-ons 
Appendix C facilities 

 
SEARCH FOR YOUR DOMAIN
www.
.com
.net
.org

Powered by ROCKCI DIY

ROCKCI DIY Virtual Server User Manual Chapter 3-4-6 ROCKCI DIY Virtual Server Features -
Form Mailer Script
ROCK Capital Interactive 
Chapter 3-4-6 ROCKCI DIY Virtual Server Features 
Form Mailer Script   

Your ROCKCI DIY Virtual Server comes complete with working, Form Mailer Script. This script will take input from an html form, and email the information to webmaster@your_domain.com . 

To try the script, type the URL http://www.your_domain.com/cmail.html into your browser. Then enter some information into the form and press submit. 
You will be presented a feedback (or Thank You) page. 
Check your email and you will find the output of the form you have entered. 

Now, to customize the html page to suit your needs, download the file cmail.html for edit.  Notice there are some important parts to this html: 

The first is the <form> tag which calls the cmail.cgi script in your /cgi-bin directory. 
<FORM ACTION="/cgi-bin/cmail.cgi" METHOD=POST> 

Next you will notice some tags: 

<input type="hidden" name="recipient" value="webmaster@your_domain.com"> 
This tells the cmail.cgi program where to email the form data. 

<input type="hidden" name="subject" value="Website REQUEST"> 
This tells the cmail.cgi program what subject to use for the email. 

After you edit the cmail.html page, you can save it to a different file name so as not to lose your example. FTP your customized html form to your virtual server 
(in ASCII mode), and you now have a customized form for your website users to contact you for inquiries, orders, or any other information you wish to collect. 

Tips 
Before Attempting to Edit  the pre installed CGI,  make a copy in case you get in to trouble. When you get your edited cgi to work, you can always delete the original or save to your local computer.  
 

Previous Table of Contents Next
Powered by ROCKCI DIY
Powered by ROCKCI DIY Virtual Servers

This Web Page © Copyright 1999 ROCKCI ,Cleveland, OH. All rights reserved.
Last edit 2/9/99 by webmaster@rockci.com