Category: Top » Internet » Web-development »


Author: acbuddy | Total views: 80 Comments: 0
Word Count: 602 Date: Fri, 12 Jan 2007 7:47 PM

Issues With Formmail

If you are a webmaster interested in adding an HTML form to your website, then you are going to need a PHP file commonly known as formmail.php. This file processes the HTML form and sends the results to you via email. However, there are a number of things you need to be aware of when creating and installing it on your website. If you have never created an HTML form before, then you really need to pay close attention.

To create a Formmail file, you can either write the PHP code yourself (which is impossible unless you are experienced), or you can download the code from one of the many sites that have made Formmail available for download. After you download it, you will need to modify the code in order to adapt it to the form you have created.

The first challenge you will face is changing the code, if need be, so that it automatically checks to make sure that all required fields from your form have been completed. Some versions of Formmail automatically include this code, some do not. If it does not include this code, you will need to hire a programmer to create it, or visit some free programming message boards and ask someone to help you with it.

The next challenge you will face is writing the code that will create the email message containing the answers to the form and send it to the email address you specified in your HTML code. This is extremely difficult to do if you are not familiar with PHP. Again, you will need the help of a programmer if you can not do it.

Also, you will need to make sure that included, somewhere in the code, is protection against spammers who will try to send spam through your form by altering the recipient field. To prevent this, you need to create a variable that only authorizes the email address you are using as the recipient. For example, if you have set up your form so that the results will be sent to your Yahoo email account, then you need to insert some code into the Formmail file that prevents the form from being submitted unless your Yahoo email account is the recipient. If you do not this, people will be able to send spam right through your form, which brings us to another important point.

Because it is possible to send spam through a form if the Formmail file is not created properly and does not authorize only one email address as the recipient, several web hosting companies do not allow their customers to run forms on their sites. Or, they use their own PHP files to process your form, which gives you less flexibility. The bigger, better web hosting companies all allow forms and allow you to create your own formmail.php file to process the form. The better web hosting companies also have extensive firewall protection built into their servers to prevent spam if a form is vulnerable.

I hope this information has shed some light on what you need to consider when installing Formmail to process your HTML form. Call your hosting company and ask them if they currently have your site hosted on a server that can process forms. If they do not allow their customers to process forms or have certain rules that restrict your flexibility, you should switch to a bigger, more experienced hosting provider that will give you the ability to do you what you want.

About the Author

Jim Pretin is the owner of http://www.forms4free.com, a service that helps programmers make free HTML forms.




Rate, comment or bookmark this article

Seed Newsvine

Rating: Not yet rated

Bookmark this article in your preferred program
AddThis Social Bookmark Button

Comments RSS

No comments posted.

Add Comment

Your Name:


Your Email:


Comment

Enter the code shown

Visual CAPTCHA



Popular Articles in this cathegory

1: Seven Social Network Script Reviews
PHP was formerly referred to as "Personal Home Page Tools" but it is actually an open source server scripting language. It is extremely popular in developing web based software applications. Programmers find it is easy to use to create web pages which have spectacular content and they easily interact with other databases.

2: Learn to Create a Web Form
If you have a website, adding a simple web form to your site, such as a feedback form, contact form, or other web form, can be a tough task. Most programming novices create their first website using p..

3: Youtube Clones & Video Sharing Scripts
There are several choices with prices ranging from free to almost $1000.00 however it all boils down to the specific features you want. This article offers an in-depth analysis on some features that may be of interest to you.

4: Learn How To Use Formmail
If you need to add an HTML form to your website, then you are going to need a PHP file commonly known as Formmail, which processes the HTML form and sends the results to you via email. Before using f..

5: How Much Are Your Website Visitors Worth?
Visitors are the lifeblood of any business. No visitors no sales; no sales no money. This rule is more than a reality for online businesses. Online businesses strive on lots of visitors because visitors on your site mean conversion and more conversion means more sales.


Creative Commons License
This article is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License.
Spanish taslation