PHP Code

How to build & process a simple contact form in PHP

More or less every business website has a contact page and contact form. Rather than manually building the form and processor and all fields with HTML and PHP, it would be so simple just to have a PHP class that does all that for you. And it would be really nice if it included automatic form validation. Well, I've found exactly that class, to process a contact form for a site.

This is how it works: It picks the submitted values of a contact form and validates the name, phone number, e-mail address and the message that the site users have entered.

The class also composes and sends an e-mail message to send to the site contact address with the details entered in the contact form.

Here's the link.



Leave a Reply

Your email address will not be published. Required fields are marked *

To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image