Difference between revisions of "R4L/Services/Hosting/Basic/FormMail"

From R4L Help Wiki
< R4L‎ | Services‎ | Hosting‎ | Basic
Jump to: navigation, search
Line 5: Line 5:
 
A ''Captcha'' is a random set of characters that is generated on the form page that your visitor needs to type in correctly in order for the form to be processed.  This technique helps reduce use of the form by automated programs that generate spam.
 
A ''Captcha'' is a random set of characters that is generated on the form page that your visitor needs to type in correctly in order for the form to be processed.  This technique helps reduce use of the form by automated programs that generate spam.
 
<br /><br />
 
<br /><br />
<form action="/cgi-bin/form-captcha.cgi" method="POST">
+
  <nowiki><form action="/cgi-bin/form-captcha.cgi" method="POST">
 
   <input type="hidden" name="recipient" value="you@your-domain-hosting-this-script.com">
 
   <input type="hidden" name="recipient" value="you@your-domain-hosting-this-script.com">
 
   <input type="hidden" name="subject" value="Web contact: http://your-domain-hosting-this-script.com">
 
   <input type="hidden" name="subject" value="Web contact: http://your-domain-hosting-this-script.com">
Line 14: Line 14:
 
       <td><input type="text" size="30" maxlength="100" name="name"></td>
 
       <td><input type="text" size="30" maxlength="100" name="name"></td>
 
     </tr>
 
     </tr>
 +
</nokiki>

Revision as of 11:10, 11 February 2014

Form Mail

The following are working examples of HTML code you can use to create a form on your website. When your visitor submits this form, you will receive an email with the contents of what they submitted in the form. These forms can be used as a contact me page or other uses.

Form Mail with Captcha
A Captcha is a random set of characters that is generated on the form page that your visitor needs to type in correctly in order for the form to be processed. This technique helps reduce use of the form by automated programs that generate spam.

 <form action="/cgi-bin/form-captcha.cgi" method="POST">
  <input type="hidden" name="recipient" value="you@your-domain-hosting-this-script.com">
  <input type="hidden" name="subject" value="Web contact: http://your-domain-hosting-this-script.com">
  <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT">
  <table border="0" cellpadding="3" cellspacing="3" width="650">
    <tr>
      <td class="right">Name:</td>
      <td><input type="text" size="30" maxlength="100" name="name"></td>
    </tr>
</nokiki>