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

From R4L Help Wiki
< R4L‎ | Services‎ | Hosting‎ | Basic
Jump to: navigation, search
(Created page with "== 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 w...")

Revision as of 11:02, 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">
     <td><input type="text" size="20" maxlength="100" name="address"></td>
<tr> <td class="right">City:</font></td> <td><input type="text" size="20" maxlength="100" name="city"></td> </tr> <tr> <td class="right">State:</font></td> <td><input type="text" size="15" maxlength="100" name="city1"></td> </tr> <tr> <td class="right">Zip or Postal Code:</font></td> <td><input type="text" size="11" maxlength="10" name="zip"></td> </tr> <tr> <td class="right">Phone:</font></td> <td><input type="text" size="15" maxlength="20" name="phone"></td> </tr> <tr> <td class="right">e-mail:</font></td> <td><input type="text" size="20" maxlength="100" name="email"></td> </tr> <tr> <td class="right" width="50%">To prevent automated posts, please enter the text shown on the image as the verification code below.</td> <td width="50%"><img src="/cgi-bin/captcha.cgi" border="1"></td> </tr> <tr> <td class="right">Verification Code:</td> <td><input type="text" size="8" maxlength="20" name="verifytext" ></td> </tr> <tr> <td class="center" colspan="2"><input type="submit" name="submit" value="Submit"></td> </tr> </table> </form> </code>
Name: <input type="text" size="30" maxlength="100" name="name">
Mailing Address:</font>