Search:
Main Menu
Login | RSS |

Quick PHP Code Tips and Examples

PHP Programming Tips, Tutorials and Source Code Examples for newbie

Simple Contact form example PHP

May 3rd, 2007 by Jon Moffet

I've manage to create a simple Contact Form demonstration code for you to use as an example. The code is very minimal and consist of 3 main files :

  • contactform.html - for the contact form interface
  • contact.css - for styling the contact form
  • process.php - form processing code and logic

The example uses PHPMailer to send emails instead of mail() function as it is safer to use than the usual mail() function

Note : the contact form is very simple that it does not include input validation to counter spammers and malicious user, use it for your own reference only.

Download link : plaincf.zip
Demo : Plain Contact Form

Simple Contact Form Example Source code

Tags: , , , , , ,

Bookmark Post:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • NewsVine
  • Reddit
  • Netvouz
  • Spurl
  • Furl
  • digg
  • YahooMyWeb
  • del.icio.us

Posted in Uncategorized |

Related Posts

3 Responses

  1. Spam Protected Contact Form example (using Akismet) » Quick PHP Code Tips and Examples Says:

    [...] is an example of an enhanced contact form previously previously featured here and [...]

  2. Haittersinign Says:

    Hi! I can’t post messagte here…
    :-(
    google

  3. Jon Moffet Says:

    fakap all

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.