Simple contact form

July 18, 2010 | Posted by: Gopi R | Wordpress plugin | 77 Comments | Video tutorial

Simple contact form plug-in provides a simple Ajax based contact form for your wordpress website. User entered details are stored into database and at the same time admin will get email notification regarding the new entry. And we have option to stop sending emails to admin. This plug-in generates images (known as “Captcha’s”) which contain security codes used for protecting a form from spam.

Live demo available on sidebar. Usually the contact form means it send contact details to admin via mail (Including famous contact form 7 Plugin). But this plugin stores the entered details into database also it sends the entered details to admin via mail, we have option to stop the mail service.

Admin can send the Mails/Newsletters to those entered emails via my another famous plugin (Email newsletter plugin)

Installation instruction

Method 1

  • Download the plugin simple-contact-form.zip from wordpress directory.
  • Unpack the *.zip file and extract the /simple-contact-form/ folder.
  • Drop the simple-contact-form folder into your ‘wp-content/plugins’ folder.
  • In word press administration panels, click on plug-in from the menu.
  • You should see your new simple contact form plug-in listed.
  • To turn the word presses plug-in on, click activate.

Method 2

  • Go to ‘add new’ menu under ‘plugins’ tab in your word-press admin.
  • Search simple contact form plugin using search option.
  • Find the plugin and click ‘Install Now’ link.
  • Finally click activate plug-in link to activate the plug-in.

Method 3

  • Download the plugin simple-contact-form.zip from wordpress directory.
  • Go to ‘add new’ menu under ‘plugins’ tab in your word-press admin.
  • Select upload link (top link menu).
  • Upload the available simple-contact-form.zip file and click install now.
  • Finally click activate plug-in link to activate the plug-in.


Error code

Deprecated: Function set_magic_quotes_runtime() is deprecated. If you got this warning message in WAMP in the front end on submit! don’t worry Guarantee that the warning message will not come into your live server.

Plugin configuration

Method 1

Drag and Drop the Widget : Go to widget page under Appearance tab, Drag and drop simple contact form widget into your side bar. its very easy way to use the plugin.

Method 2

Add directly in the theme : Use this code,  <?php if (function_exists (gCF)) gCF(); ?> to add the gallery to your Theme files.

Where i can find contact us details

This plugin save the user entered deatils into DB also send email notification(Version 6.0) to admin.

  1. Option 1 : Setup email option to receive the mails.
  2. Option 2: Check this dashboard page : Administration → Settings → Simple contact form.

Simple contact form configuration details

Administration → Settings → Simple contact form → Setting page

Title: Enter widget title.

Display Option On Homepage: Display Simple contact form on website home page (YES/NO).

Display Option On Posts: Dispaly Simple contact form on posts (YES/NO).

Display Option On Pages: Display Simple contact form on admin created pages (YES/NO).

Display Option On Search: Display Simple contact form on search pages (YES/NO).

Display Option On Archives: Display Simple contact form on archives pages (YES/NO).

Send Email: Admin email notification (YES/NO).

Enter Email Address : Enter admin email address here.

Enter Email Address : Enter email subject.

Frequently Asked Questions

Q1. How to customize this plugin?

After completed the plugin installation check this link : Administration(Dashboard) → Settings → Simple contact form.

Q2. What is Display Option?

This option is to set the form display in the front page. Example : display form only on home page or display form only on post. Etc…

Q3. Where i can find contact us details?

To see those details go to ’simple contact form’ link under SETTING menu. And now in the version 6.0 we have email option.

Administration → Settings → Simple contact form.

Q4. Is this send any mail to site admin?

Yes; In the new version 6.0 I have included email option. This is optional feature. If Admin wants to receive email for new entry he should set the send email option to “YES”.

Q5. How To change the captcha color scheme?

To change the Captcha color scheme.
1. Take captcha.php file.
2. Go to line 26,27,28 to change the Captcha color scheme.

Comments (77)

  1. Tauseef Ahmed says:

    Dear i am happy to see your plug-ins. i use your single plug right now simple contact form in my local systems. but there is a problem invalid security error generate rather i punch the correct code.

    Can you help me what is the problem in it.

  2. admin says:

    GD library should be in enabled mode in your server, check the server.

  3. jbr says:

    Hello,
    same error as above and my GD library is enabled.
    Best regards,

  4. leo says:

    how can i remove the security code from the form ?

    nice plug in!

    thanks

  5. jkwcape says:

    Thank you for this GREAT little contact form widget. Is there a way for it to send an alert or email admin when a message arrives?

    • admin says:

      At present we don’t have option, we will do this in the next version, nice idea.

      • Rusty says:

        Thanks for the plugin. PLEASE add the ability to email form submissions to email addresses specified by the admin. If someone uses this plugin when building a website for a client, you should not need to tell the client that they need to sign in to their WP admin every day to see if someone contacted them.

  6. waniey says:

    finally i’ve found the simplest contact form that no need mail, no page refresh…thanks to you…i really appreciate your worked…keep it up!

  7. allen says:

    I like the plugin but without any form of notification of new messages it a bit of a hassle. at leas put a notice on the dashboard or something

  8. Christeena says:

    Hey, I was looking for a good contact us and a captcha.

    I have it installed but when I went to check it out, the image of the captcha is no there.

  9. Admin says:

    check in your server whether GD library setup enabled in your server or not,
    if you got the same problem again, just try with older version of the plugin.

    http://downloads.wordpress.org/plugin/send-link-to-friend.2.0.zip

  10. Peter says:

    Hey.

    I not anderstand what i must do:

    You writh:

    Now 2 way to use.

    1. Drag and drop the widget to your sidebar.
    2. copy and paste the given code to the desired location.

    —————–
    I not anderstand whee im must paste the code.

    2. copy and paste the given code to the desired location.

    I hope you can help.

    • Gopi R says:

      1. Drag and drop the widget to your sidebar.

      This is just drag and drop the widget in the admin widget management area.

      2. copy and paste the given code to the desired location.

      This is just copy and paste the give php code directly into the PHP file.

      • Terry says:

        I’ve downloaded and installed. The security code does not work….I enter it and it comes back with “security code not valid”

        How do I fix this?

        • Tori says:

          Yes, I get the same problem.

          Don’t understand any of the “answers” given previously.

          Other contact forms with captcha work but I like this one as it is a widget.

  11. Elias says:

    Dear Gopi Da .
    Thanks For good plug-in.
    Widget there it work fine.
    But I want used this plug-in at my contact page.How?
    And which PHP file ?

    Please help Me.

    Thanks again .

  12. pututik says:

    like elias say, how to integrate in one page using html post page ver? if we used code in template it should create another page template beside the default template.

  13. sdcpune says:

    Hi Gopi, How can one extend this scheme of writing out more forms with different number of fields and submit the user-filled up values in the database. Obviously to accommodate variable number of fields, I would resort to a single string (comma separated). Perhaps compress this string and then just save it in the DB.
    You might have already guessed that I come from desktop computing background.

    Rough specs I have in mind;
    - Saving submitted values to DB
    - User not leaving the current page (AJAX-sidebar/slidder or Greybox/Thickbox to load up form page or inlined content)
    - 6 to 8 different forms, so single resulting string (container) –> compress it (save bytes and not human readable) –> Save to DB.
    - Another php app to read from DB and write out a CSV file or hand it over to PHPList etc.

    Can you please provide some helpful pointers?

  14. Dave says:

    Settings link does not show up on Admin > Plugins page. Only choices are “Deactivate | Edi”t. Any idea why not?

  15. jzigbe says:

    Amazing Contact form. Many Thanks.

  16. Ritesh says:

    I wish to remove the capcha option from the contact form, i only need name, number,email and comments. Do let me know how i can make this….

  17. Jen says:

    I loved your ‘send link to friend’ plugin so much, I came here to see what else you had. I’m glad I did! I’ve been looking for a simple contact us plugin that didn’t require some big subscription plan I had no use for. This is just what I wanted. However, like a few of the above comments, I would really love to be able to remove the captcha security question if that’s possible. I have the form as a pop up/down on my sidebar, so I really want to eliminate as many extra steps as I can. Plus, I personally hate having to always enter those, so I’d rather not require it of my visitors! :) Any way to remove it?

    Thanks for a great plugin and any help you can give,
    Jen
    http://www.santasnaughtyelf.com
    Short Children’s Christmas Stories featuring Santa’s Naughty Elf

  18. bart says:

    I’m using the form for http://eigenreijs.nl/wp/contact

    It’s working fine in firefox, but it doesn’t showup in IE.

    Am i doing something wrong?

    Someone can help me out?

  19. sam says:

    Hello we are facing problem while send mail it out putting error security code is invalied

  20. Links de la Segunda Clase | DISEÑO WEB DESIGN says:

    [...] Buena lectura This entry was posted in Segunda Clase. Bookmark the permalink. ← Links de la Clase 1 [...]

  21. Kirill says:

    Hi Gopi, look on my variant of your plugin: http://wmdn.ru/wordpress/feedback-form-using-ajax-and-protection-from-spam-by-cookies/.
    May be captcha on cookies has moar usability for net-users?
    Anyway big thanks for your job, this plugin gave me good idea. =^_^=

  22. Don Holsten says:

    Good try,

    There is absolutely now way, I can retrieve the emails sent to me. I clearly see they are there but without retrieval, this is pretty useless.

    But thanks anyway.

    Don Holsten

  23. Peter Spoerry says:

    Thanks for this cool plug-in. My Problem is: All registred users can chance the general display setting of this Plugin at his admin panel. Only the admin should have this right. What can i do ?

  24. My favorite WordPress Plug-ins :: says:

    [...] Simple Contact Form. Make sure you add some sort of a contact form to your website. The one I listed here is very basic but you can find advanced from plug-ins like Gravity Forms. For a very small fee, you can add a poll or survey using Gravity Forms. Cancel reply [...]

  25. Anil says:

    How can call the contact forn under the top menu link, i need call the ofter click menu, than open the contact form , how can possible in wordpress.

    Thanks
    Anil

  26. kim says:

    Hi,
    I installed the plug in but there is no widget available on my site. any other way to have it show up? thanks.

  27. Fritz says:

    Hi. the simple contact form Captcha wont show up on my site. when I go to settings for this plugin I get “No data available. Go to front end and post one sample data using contact form.” what do I do? I’m kinda a noob and dont understand this error. please help?

  28. leo says:

    can i add a telephone filed to the form ?

    ty

  29. designer bathroom furniture says:

    The website feels superb!!! Thanks so much for all you’ve placed into it. Just when I consider the group couldn’t get stronger, you detect ways to make it happen!

  30. erkan says:

    very thanks for your this and all works!

  31. Zé Carlos Oliveira says:

    Can the message or at least an alert be sent to the admin´s email? It will be very usefull…
    Thanks…

  32. lainie says:

    I have done everything I am suppose to do but when I go to the form on the front end and enter data it keeps saying Invalid security code. What did I do wrong ? :(

  33. Wordpress plugin simple contact us form | Gopi's Digital Web book says:

    [...] http://www.gopiplus.com/work/2010/07/18/simple-contact-form/ [...]

  34. Admin says:

    Version 6.0 available with email option.

  35. Indra says:

    i cant find a code if i want to put this plugin into a page, could u give the details….tx

  36. Sam says:

    Great plugin. Nicely done. Is there way to remove captcha from form? Thanks!

  37. duncan wood says:

    Hi there.
    I’m thinking of installing your plug-in – which looks great. I have 2 questions though. First, I would prefer to have it in the main body of the page rather than the sidebar – is this possible? Second, do I have control over the text? I want “enter security code” (instead of “enter below …”). I am not a techy so I would rather not have to modify code – if possible.

  38. fil says:

    hello very good but when your plug-in the status message in Greek characters are not readable (ελλΕνικα τεσÏ) what I can do; you have a solution; thank you

  39. david says:

    hi mate.
    great plugin!
    how do I do to deactivate the captcha? right now i took off the captcha div on the simple-contact-form.php but it doesn t send any message at all. here is the site http://www.ccspeechwriters.co.uk/contact/

  40. Smartphone says:

    This plugin very helpfull to me. So i doesnt need to create contact form manually. Thanks. Best regard.

  41. Wordpress plugin email newsletter says:

    [...] send the newsletter to all registered emails, commented posted emails, also I have integrated the simple contact form wordpress plugin with this newsletter plugin. Please see the admin screens shot [...]

  42. اضافة النشرة البريدية ( الاصدار 4.0 ) « Deao Blog says:

    [...] الاندماج مع اضافة simple contact form plugin [...]

  43. Liebe SMS says:

    excelente roladese mi resfiba te amosa ribes ersivente. osasses te expes agoeirera nos brirdias o manscres peutores riabuz bien.

  44. SCarr says:

    The form is only sending the message (which I turned into a phone number). What code in the plug-in Save page will also email the Name and Email address in the content section?

  45. marv alpert says:

    HELP NEWBIE. I want the form to be ONLY On The Contact page.. now it is on every page. what do i do.
    how do i tell it just to go on ONE PAGE

  46. Jacques Lask says:

    Hi there, this is great post. I absolutely love it. However there are a great amount of off topic comments. I strongly advise you to eliminate or something like that. That’s only my opinion. All the best !!

  47. aamir says:

    great plugin, but one big deficiency, there is no support to adding it in a page.
    Gopi plz make this functionality available, so that users can add this form in to pages using short code.
    thanks

  48. Sheldon Hodson says:

    Hello I am so happy I found your blog page. A quick question if you don’t mind. I’m really enjoying the design and layout of your site. It’s a very easy on the eyes which makes it easy to follow for me to come here and visit more often. Did you hire out a designer to create your theme? Superb work!…

  49. suny says:

    it’s not working….. mails are not going on ma admin e-mail……..

  50. suny says:

    and…. from where i can enable ma GD library

  51. Jayne Packer says:

    The plug in is great for the sidebar – however, it is saying “invalid security code” after I have put in all the information and pressed submit.

    Have no idea what I am doing wrong!

    Any help would be appreciated.

  52. Tom says:

    How do I go about setting up another email address to be notified of new enquiries ? Thanks very much.

  53. anjrah university says:

    so simple,, more benefit,, thanks so much,,

  54. Faces Reunion says:

    great plugin. how to use it at the page or post? there is some html code that i can use?

  55. Motrat Mustafa koncert says:

    I would like to consider the opportunity of saying thanks to you for your professional suggestions I have enjoyed checking out your site. We are looking forward to the actual commencement of my school research and the whole preparation would never have been complete without surfing your blog. If I may be of any help to others, I will be delighted to help by means of what I have learned from here.

  56. Tristan Bergey says:

    It’s a happy day to be able to read an section that is so clearly researching and written. I doubt very much enjoyed this naming content. Your layout is excellent. I will come back again.

  57. affordable websites says:

    hi great plugin,

    how can i use a shortcode to paste into my wordpress pages direct?

  58. shrikant says:

    really great contribution in wordpress i love ur plugins

  59. shrikant says:

    @gopi:i use your email news letter plugin but when i send emails to my subscribers it not showed the mail in their inbox???? why?

  60. Tim says:

    how do I add the contact script to a page easily?

  61. Collin says:

    i have a white background and therefore the textboxes for name, email, message, etc. are transparent and the average internet browser doesn’t really know where to enter their information. is there any way to change this?

  62. Tony says:

    I have installed your plugin, and followed all of your steps. However, for some reason when I attempt to edit the page, I don’t see the plugin listed or a means to edit it. What am I doing wrong?

  63. Mukesh Jat says:

    Nice plugin Thank you Gopi

Leave a Reply