How to Create Forms
            CLICK THE LOGO TO RETURN HOME
            CLICK THE BROWN BAR TO RETURN TO VOLUNTEER GENERAL INFO                                                                                                                           

CI Host (the server for the NCTA website) disabled Cgiemail in December of 2003 due to security and abuse issues. They have gone back to supporting the secure version of FormMail. It is not too difficult, but you will need to code your forms according to the following format. These instructions assume that you have some knowledge of working with forms. If you do not, please consult a basic book on coding of forms.

With FormMail you only need to create one page, your actual form. However, on every link where that form is called, it must be called through the secure server.

Look at the following sample form. The explanation for certain lines of code follows. (Note that the sample form itself will not work because it is not called through the secure server. It is just for your information and to use as a template.) There are samples of textboxes, textarea, radio buttons (only one choice allowed), checklists (multiple items may be checked), and pull-down menus which can be adapted to your needs.

You must include the following lines enclosed in the "greater than/ lesser than" signs as usual for HTML code (see the sample form)

<FORM METHOD=POST ACTION="https://salmon.site-secure.net/northcountrytrail/cgi-bin/formmail.cgi">
This line must appear just as it is- no changes.

This line tells the form where to send the user after the form is submitted. You could create your own "thank you" page, or just send them back to the NCTA home page, or your chapter page.
<INPUT TYPE=HIDDEN VALUE="http://northcountrytrail.org/successfulmessage.htm" name="redirect">
Replace the URL here with the URL of where you want to send them.

This line tells the server where to send the filled-in form. For security reasons it will only accept addressess at northcountrytrail.org unless a configuration file is changed. If you want to use a form, and do not have a chapter address being forwarded to you, contact Matt Rowbotham and an address will be created for your form that will be redirected to you.
<INPUT TYPE=HIDDEN name="recipient" size=25 value="youremail@northcountrytrail.org">
Replace youremail with a valid northcountrytrail.org email address.

This line tells the server what to put in the subject line of the email which will be sent to you when someone clicks to submit their form.
<INPUT TYPE=HIDDEN VALUE="Your Form Name" name="subject">
Replace "Your Form Name" with whatever you want.

This line tells the server which fields to require someone to fill in. These names must match the field names in your form, and you MUST use "email" as one of the fields. If you would like their name to show up in the email address as well, use "realname" as the name field.
<INPUT TYPE="HIDDEN" NAME="required" VALUE="realname,email,address,city,state,zip,phone">
Replace field names with whatever other fields you want to require, separated by commas.

When your form is completed, any link which leads to it needs to look like this:
<A HREF="https://salmon.site-secure.net/northcountrytrail/yourchap/yourfilename.htm">
Replace "yourchap" with your three-letter chapter file code, and "yourfilename" with the name of your form.

Be sure to test your form with various options before you publicize it! If you have made a good effort, and still can't get the form to work, don't hesitate to ask for help