Forms
By completing the following form you will send your comments to the email address
support@interwrx.com. Accompanying the form is
the HTML syntax with embedded comments to help you understand how the form works. Because Interwrx.com
uses MailPost you will also need to create a template file for each form in your website. Part One
covers creating the Form and the HTML coding. Part Two covers the creation of the template text file
that your form will point to.
Part One:
Syntax:
<form method="post" action="http://www.interwrx.com/cgi-local/mailpost.exe/USER_DIR_PATH/template.txt">
Required tag - USER_DIR_PATH needs to be replaced with your subdirectory under Interwrx.com. (i.e., if your web address is: http://www.interwrx.com/johndoe then the above action should be changed to action="http://www.interwrx.com/cgi-local/mailpost.exe/johndoe/template.txt
Note: If you place the template.txt file in another sub-directory you will need to include this in the path (i.e., if you place the template.txt file under a directory called "images" then it will read "../johndoe/images/template.txt" after mailpost.exe
<input type="hidden" name="success" value="http://www.interwrx.com">
Optional tag: Value should equal address you want
your visitor sent after completing the form. If this tag is not specified then
the script will generate a page displaying all information that was submitted.
Your Name: <input name="required-fullname" size=25>
Optional tag: Places name in 'From' field when form is sent.
note: the "required-" is optional, by adding this you make this input a required field when someone is filling out this form.
Email Address: <input name="required-email" size=25>
Optional tag: Places the email address in the 'From' field
when form is sent.
note: the "required-" is optional, by adding this you make this input a required field when someone is filling out this form.
Your Location: <input name="Location" size=25>
Optional tag: Value should equal the 'subject' of information you
are requesting from visitor.
e.x.,
Mailing address: <input name="Address" size=25>
Your web address: <input name="Homepage" size=25>
Your Message:
<textarea wrap=virtual name="Feedback" rows=4 cols=50></textarea>
Optional tag: Places a text box and is generally used for 'comments'.
Value should equal the 'subject', in this case "Feedback".
<input type=submit value="send feedback">
Required tag: Creates the 'Submit Button'. Value equals the text
seen on the button (i.e., "send feedback").
<input type=reset value="clear form">
Optional tag: Creates the 'Clear' or 'Reset' button. Value
equals the text seen on the button (i.e., "clear form").
</form>
Required tag and must be placed at the end of the form.
Part Two:
Now that you have created the form you will need to create a template that your form will use when sending
an email with the information above. The name of this template file can be anything as long as it is saved as a plain text file with the .txt file extension. Remember, the last section of the form action must be the same as the file name!
Example of template file for above form:
To: support@interwrx.com
cc: [required-email] (optional)
Bcc: [required-email] (optional)
From: [required-email]
Subject: Support Feedback Form
[*date-time*]
Name: [required-fullname]
Email address: [required-email]
Location: [Location]
Message: [Feedback]
To:, cc: (optional), Bcc: (optional), and From:
To: - The "To:" field should contain the email address of who you wish to send the results of the form to. If you place [required-email] instead of your address it will email the results of the form to the person filling it out.
cc: & Bcc: - If you do decide to send them the results of the from, then you will need to either add yourself as a "cc:" (carbon copy) or "bcc" (blind carbon copy). The differences between cc: and bcc: is that bcc: hides your email address and cc: makes it visible.
From: - This will be the value you wish to see placed in the "from:" field when the email message is sent out. If you are not sending out a copy to the individual filling out the from then you might set this value to [required-email] which will place their email address as the "from:". However, if you are sending them a copy of the email and want to give them an opportunity to reply back you can specify your own email address in this field.
Email Body
The rest of the template file should contain the way you want the information formatted that is being pulled from the form. Our above example requests four items, required-fullname, required-email, Location, and Feedback. The name of each input needs to be enclosed in "[" and "]" brackets in the template file.
Email Output:
From: janedoe@interwrx.com
To: janedoe@interwrx.com
Subject: Support Feedback Form
Date: Tue, 04 Apr 2000 13:29:31 -0700
X-SLUIDL: ACE96C7E-0A5511D4-93F80800-3E26D8D1
04/04/2000 13:29
Name: Jane Doe
Email address: janedoe@interwrx.com
Location: Mesa, AZ
Message: Just taking a look around.
Here are links for additional information on implementing forms: