Your website visitors often want to contact you. For support, to inquire about a product, for link requests or even just to say hello. Many website owners just list their email address, so visitors can write to them. This way of posting contact details is very common, but it has a major drawback: spamers harvest websites searching for email addresses. Once your email gets into their list, you start receiving unwanted ads, various shady discount offers and even viruses. The safest way to allow your visitors to contact you is to include a web form on your website. Doing this is not that complicated, but it requires a certain degree of HTML knowledge and access to your website source. Below is a small HTML form that includes only 3 fields: Name, Email and Message.
This form uses “mailto” function to send the filled data to the specified email address. Let’s break this HTML form into pieces, line by line: 1.
at the end of your HTML email form script. This method of building a HTML form for your website has a minor drawback: your email address is still visible. It still can be harvested. To hide it, you would need more programming skills, to include the mailto command into a php function. But don’t worry, there is another way. A simpler and faster way to have a HTML form, and it doesn’t require any programing skills at all. It works even if your server doesn’t support php, and you can benefit from powerful features like receiving attachments, multiple recipients, field validation, message history and anti-spam defence. You just use an online wizard to generate your HTML web form, and then copy-paste the code on your website.