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.
Name: Email: 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.
This line includes the beginning of the tag and the email address that will receive the message. The only thing you should modify is the email.
2. Name:
This line contains the first field from your contact form: an edit box, "name", that users will use to write their name and a label describing that field.
You might also have noticed some properties of the edit box: size currently 10 and the maximum allowed length that is 40. "" is the HTML tag for new line.
3. Email:
Similar with the line above, it is an edit box for your visitor's email address. This field is very important because you will use this information to contact your visitor. You can also modify the size and maxlength property of this edit box.
4. Message:
This field will contain the message body. It's not an edit box anymore, because we needed more space. This HTML field is named . You can modify its height and width by changing the values for "cols" and "rows" properties.
5.
This is the button visitors will press to send you the message. You can change the "value" property from "send message" to anything you want.
Don't forget to close the form tag by adding 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.
Published by Benny Rockefeller
Bringing you the best articles since 2002. View profile
Your Guide on How to Make a Gingerbread HouseGet recipes, tips, and templates so you can make your very own homemade gingerbread house. This guide also includes links for hard-to-find products to make your house special an...
Craft Guide: How to Make Your Own ClayBy making your own clay you control the ingredients. No preservatives, no toxins and no harsh chemicals. Color them with food coloring or other dyes as you see fit. Learn how h...
How to Make Clay from Dryer LintThis is a craft recipe to make modeling clay out of dryer lint. Using dryer lint to make sculptures is the ultimate recycling craft!- Arts and Crafts 101: How to Make and Use Salt DoughSalt dough is a fun, inexpensive, and easy-to-make arts and crafts medium that can be used for many different types of craft projects. Here is an easy salt dough recipe to get you started.
- How to Fill Out Forms Automatically (using Autofill Forms)Filling forms is a thing of past using Autofill Forms Firefox Extension.
- Web Forms Attacked by Spider Spam
- Ins and Outs of Custom Web Applications
- Web Design Marketing Ideas
- Designing a Web Site Content for Visitor Usability
- Starting a Web Design Business
- How to Make Construction Paper Clay
- How to Make Money when You Move



