Member Panel

Build a quick and simple Contact Form
August 3rd, 2012 - 3 Comments »


Need a quick and easy contact form for your website? Then this is the code for you, It is a very simple script.

Step 1: The Markup

Create a new file, call it contact.html or similar. Now let’s actually create the form fields. Copy and paste the following code into the newly created .html file.

As you may notice the forms “action” is “contactengine.php” this file, which we will create in the next step is the functioning of the whole contact form. Now save and close this file.

Step 2: The workings of the Contact form

Now create a file called contactengine.php This is the workings of the contact form, all the magic happens in here. Copy and paste the following code into this file.

This code basically grabs all of the detials input into the contact form and sets them out into an email which you will receive to the email specified.

You can edit the parts I have commented to your own details / messages. Now save this file in the same directory as the contact.html file and upload to your server…

Voila, a simple and quick email form for your website. Very easy to integrate and style to suit your own websites. If you have any trouble please just leave a comment and we will be happy to help you out.

Related posts:



3 Responses

  1. Abed Nego says:

    Please help me i used the codes to fit in a form on my site but it returns
    ”There has been an error, please make sure you have entered your details correctly. ” where could the problem be pls
    i only changed the Email to – my email.

  2. raju says:

    thnkx for ur script

    i have been done which as u mentioned here. And in the test run message ” u r message has been sent ”
    but nothing else to come in my email
    can u plz help me out?

  3. raj says:

    dear raju you can try on live server ratherthan localhost..

Leave a Reply