ORDER ONLINE OR CALL 1-228-219-9313

create a php contact form


Categories


Recent Posts


Community Links

Editable Content Using MooTools, PHP, and MySQL
Having a website that allows for editable content blocks is the dream of many customers. I've taken a few hours to develop a system for in-page, editable content blocks.

43 iPhone Development Resources
Programming for the iPhone is still pretty new. It might be a bit tougher to find iPhone developer resources, but we found a bunch that will get you through building any iPhone app you might be starting on.

Top 10 Apps for HTC Hero
Since Apple launched the App store for the iPhone, the way that we use our phones has changed. Almost all touchscreen smartphones now have a version of the App store, where you can download free and paid for applications to your phone to increase it’s functionality.

40 Brilliant Examples of Mascot Designs
Mascot design is a huge key to your brand, and are thought to bring luck. A mascot usually represent a corporate brand or a public identity. Since human picture memory is better that text, a mascot easily helps people remember who you are.

15+ Sections That Should Be In A Testing Methodology
The testing methodology is very important in any organization. This documents lays the foundation for the testing group. It's main purpose is to ...


Submit  |  More

Most Commented


Most Viewed


Zero 3 Computers on Facebook
Follow Us On Twitter    Share on Facebook     Add Us To Your Favorites    Stumble Our Website Design Blog     RSS Our Website Design Blog     Digg This Blog Post
Wednesday, November 25, 2009
CATEGORIES:PHP, TIPS, WEBSITE DESIGN,

Create A PHP Contact Form Blog Post Image

Every website needs to have some way for the visitors to be able to reach out and contact the website owner, but with all the spammers and pay for scripts out there where do you start. Well if you are here then you are obviously off to a good start. I have created a non javascript based contact form with required field validation and email validation....all using PHP. In this article you will learn it step by step and can even download a working version. Best of all, its free.

I break down the CSS, HTML, and PHP to show you how to make changes or just use it without modification....its your choice. You can copy and paste the script using the broken down sections below or you can download the script free of charge and I do not required a watermark link (but one would be appreciated).

We have comments in the PHP for the PHP challenged, so there is no need to worry about not knowing a thing about server side scripting....it's all documented(We recently moved all of the coded language to the attached files. Please see them for what you need)

Documentation

Even if you do not understand PHP you can use this form right out of the box. I only ask that you give credit where credit is due, but of course that is not required. I have included a working zip file that contains the contact.php file with everything you see here. Good luck and happy coding.

Contact Form Attached (download) I have attached a contact form in php format. You can edit it using the guidelines above. You can download the contract here.

Have an opinion about our article? Please share your thoughts in the comments below. We respect the DO FOLLOW rule so "you comment, we follow".

Be sure to stay tuned: follow us on Twitter, friend us on Facebook and grab the RSS.

Share |

POSTED BY:ERIC
PHP, CONTACT FORM, SIMPLE, NO JAVASCRIPT, VALID, CODE

Comments -- Add Your Own


ShamWOWs Image

1

ShamWOW

November 29, 2009, 7:24 pm
Cool. Nice tutorial.

Thomas F.s Image

2

Thomas F.

December 1, 2009, 1:48 pm
Thanks for the help. I was needing a free php contact script.

Isabelles Image

3

Isabelle

January 4, 2010, 2:02 pm
Thank you even if I don't understand everything xD

Janos Image

4

Jano

February 16, 2010, 4:40 am
Thanks mate for this nice tut, I have a question how do I increase size of text fields? I've tried size="" maxlength="" atributes but this dosen't work at all.

Erics Image

5

Eric

February 16, 2010, 9:08 am

Thanks. You can use size="50" to increase the size of the box, use the maxlength="50" to limit the number of characters in the textbox, and finally use style="font-size:20pt;" to increase the size of the font within the textbox.

You are doing it correctly, so I do not know why it would not let you increase the size of the textbox. Those are some ways to modify the textbox, but just in case it does not help I have provided you with a link to a great HTML tutorial website: Tizag

I hope that this helps, if not post here with your code and I can take a look at it. Good luck.

rulerslions Image

6

rulerslion

August 27, 2010, 7:18 pm
thanks for sharing. nice article..

*
* never shown publicly
ex. www.zero3computers.com


Follow Me on Twitter

Get Our RSS Feed

Become a Fan of us on Facebook