Skip Navigation

User Tools

Site Tools


How to Use Form2Mail CGI

  1. Create a form using HTML or a WYSIWYG editor.
  2. Set the form tag method attribute to post.
  3. Set the form tag action attribute to “/cgi-bin/” EXAMPLE
    <form method="post" action="/cgi-bin/">
  4. Add a hidden field called “recipient” with the value set to the e-mail address you want the results mailed to. Separate multiple addresses with a comma. EXAMPLE
    <input type="hidden" name="recipient" value="" />
  5. This is the only required field to use this CGI.
  6. Add optional fields from the list below to format the results.

redirect This is the full URL of the page the user is sent after they submit the form.
<input type="hidden" name="redirect" value="" />
Note: You will need to create the return page.
required This designates certain fields as required. The form will not be processed unless the required fields have been completed.
<input type="hidden" name="required" value="name, Phone, comment" />
Note: Field names must be exact, this is case sensitive.
sort This field will specify the order in which the form fields are printed in the e-mail body. They will not, by default, print in the order they appear in the form.
value="order:name,Phone,address,etc..." to choose a specific order. If "order:..." is used, only the fields specified in sort will be transmitted, all others ignored.
value="alphabetic" for alphabetic sorting
<input type="hidden" name="sort" value="order:name,Phone,comment" />
Note: Field names must be exact, this is case sensitive.
realname The name of the person submitting the form.
<input type="text" name="realname" />
subject The subject of the form. This will appear int he subject line of the e-mail address.
<input type="hidden" name="subject" value="Form Submission" />
Note: It is possible to use a text field instead of a hidden field if it is desirable to have the users to choose the subject.
email The e-mail address of the person submitting the form. This will appear as the sender of the resulting e-mail.
<input type="text" name="email" />
hide_blanks If this field is contained withing your form with a value of "1" fields not filled out by the user are not printed in the body of the email message.
<input type="hidden" name="hide_blanks" value="1" />
additional fields All other fields on your form will be included in the e-mail (unless hide_blanks is chosen).
<input type="text" name="field_one" />

web/form2mail/details.txt · Last modified: 2011/03/03 12:40 by lrath