1and1 Help Centre Categories

print article

Example 1: Create a Form Using FormMail.pl

Create a form called form.html and then insert this HTML code into the file.

<html>
<head>
 <title>What is your favorite animal?</title>
</head>
<body>
 <form method="post" action="http://yourDomain.com/FormMail.pl">
  <table>
   <tr>
    <td>What is your name?</td>
    <td><input type="text" name="visitorsName" /></td>
   </tr>
   <>
    <td>What is your favorite animal?</td>
    <td><input type="text" name="favAnimal" /></td>
   </tr>
   <tr>
    <td colspan="2"><input type="submit" /></td>
    </tr>
  </table>
 </form>
</body>
</html>    
You will need to replace the text in red above with the location of the FormMail.pl script.