Installation Guide

Create three html files and name them ok.html and ko.html and req.html. OK.HTML will be displayed each time the form was submitted correct, KO.HTML will be displayed each time the server encountered and internal server error and REQ.HTML will be displayed each time the form was submitted without having all required fields filled in. Here are examples of each file:

ok.html – Your thank you message
ko.html – Server Error
req.html – This will contain message to remind user to fill in required fields

Create your form and ensure that you have the following lines

Line1:  <form NAME=”SpaceForm” METHOD=”POST” ACTION=”/cgi-mail/CGImail.exe”>
Line2:  <input type=”hidden” name=”$File$” value=”i:\usr\iwi\template\example.txt”>
Line3:  <input type=”hidden” name=”$Subject$” value=”Form Example”>
Line4:  <input type=”hidden” name=”$LocationOK$” value=”https://www.iwi.com.sg/customercare/hosting/win2k/ok.html”>
Line5:  <input type=”hidden” name=”$LocationKO$” value=”https://www.iwi.com.sg/customercare/hosting/win2k/ko.html”>
Line6:  <input type=”hidden” name=”$LocationReq$” value=”https://www.iwi.com.sg/customercare/hosting/win2k/req.html”>
Line7:  <input type=”hidden” name=”$To$” value=”cussvc@iwi.com.sg “>
Line8:  <input type=”hidden” name=”$Optional$” value=”No input given.”>

 

Line1:  Calling the CGI
Line2:  Path to template file (i:\usr\you_domain_here\template\whatever.txt)
Line3:  The subject of your form
Line4:  Location of your file called ok.htm
Line5:  Location of your file called ko.htm
Line6:  Location of your file called req.htm
Line7:  Recipient (add another line to have multiple recipients, “To” or “Cc”)
Line8:  Value used if optional fields have not been filled in

Note: Line1 – Line8 are required ! You may add multiple recipients by simply adding additional “To” or “Cc” lines.
Form example and source / template file (working demo)
Create your template file and upload it into your template folder inside your virtual server root (see example below). Click here to download the complete documentation.
View the template file

Related Article