| How
to Create a Subscribe Webform with formmail.pl (Perl)

The
following article shows how to create a subscribe
webform using formmail.pl
written by Matt Wright.
This PERL-script is installed on many webservers.
Here is the complete HTML soucecode for a HTML
subscribe form using fommail.pl installed on your
webserver:
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html;
charset=iso-8859-1">
</head>
<body>
<form
action="http://www.mydomain.tld/cgi-bin/formmail.pl"
method="POST">
<input type="hidden"
name="recipient"
value="mylist@mycompany.tld">
<input type="hidden"
name="redirect"
value="http://www.mydomain.tld/newsletter/thankyou.htm">
<input type="hidden"
name="subject"
value="Subscribe">
<br>Email: <input
type="text" name="email">
<br>Name: <input type="text"
name="name">
<br><input type="submit"
name="send" value="Submit">
</form>
</body>
</html>
The blue lines are
specific code for FormMail. If you use a different
script, you need to adjust these lines.
The green lines are
universal code, used to add 2 fields (name and
email) to our form.
Now save the file to your webserver and
click on "Submit". |
|