WP Simple Contact Form plugin

As I searched for a simple, reliable, and most important, working contact form plugin for Wordpress I was stumped to find no really attractive alternatives.

Either they were not working properly, or they were too complicated, so I decided to make my own.

Thus WP Simple Contact Form.

Features

  • Form validation and detailed UI feedback on error
  • Captcha that should work on most setups with GD library installed
  • Language file for easy localization
  • Admin option page where some basic options can be set
  • Simple to install and use

Demo

See the contact form on this blog.

Download

Latest version: wp-simple-contact-form

Installation

  1. Download the file: wp-simple-contact-form
  2. Unzip and upload to your plugin folder
  3. Activate plugin in the Admin panel
  4. Go to the options page and enter the desired options
  5. Create a page and add the text [ wp_simple_contact_form ]
  6. Done!

Localization

If you wish to localize the contact form, open the original language file in the plugin folder (sv_SE.php), add your translations and save the file as language_code.php, as defined by WPLANG in wp-config.php .

If you create your own language file, please consider posting it as comments here for others to user.

Changelog

0.9 (11/12 2009): First release. Basic functionality.

0.9.2 (14/12 2009) : Small bugfix

You can leave a response, or trackback from your own site.

24 Responses to “WP Simple Contact Form plugin”

  1. bee says:

    how to remove borders? Hmmm…and when i try to send I’ve got error…??

  2. Jesper says:

    The error on send should be fixed now. The borders can be removed by editing the form.css file.
    Regards

  3. bee says:

    I’ve installed again this plugin…and i think more better before older version,

    I would ask… where message I’ve posted?? I can’t see in my inbox email when I test it…

    (it’s so hard to find contact plugin who can works well)

    Thnks…

  4. Jesper says:

    Did you enter your email in the settings page? Look in the Admin Panel Options, and there your should find the WP Simple Contact Form options.

    Good luck,

  5. bee says:

    Oh…Ok!….my message has come now … no problems with a long time to receive a message … because this plugin works well … I have a plan for a post with the success of this plugin … I wait for the continuation of the next version.

    thanks :)

  6. gui says:

    hey there,

    very nice plugin, thank u so much !
    can u send me ur css file ? ( of ur form ) ,because my form css is not good
    thank U
    hace a nice day

  7. gui says:

    an another question,
    wwhere must I place the language-code.php ? in the same form directory?

    I re write the fields of svSE file but it doesnt see the changes, please help! thank u

  8. gui says:

    I again ! : )
    i have a fatal error !
    Fatal error: Call to undefined function getip() in /www/docs/xxxxx.com/public_html/wp-content/plugins/wp-simple-contact-form/wp-simple-contact-form.php on line 95

    what can be it?

  9. jim says:

    Install went good, but I dont like the font colors, is there a way to change them?

  10. jim says:

    oh wait never mind I found it. OMG I just made my first PHP file code change!!!

  11. Jesper says:

    Change getip() to $_SERVER[REMOTE_ADDR] and you should be fine.

  12. Roman says:

    Just installed as instructed and I’m getting this message…

    Fatal error: Call to undefined function getip() in /home/content/64/5213264/html/wp-content/plugins/wp-simple-contact-form/wp-simple-contact-form.php on line 95

  13. Jesper says:

    See my above comment

  14. ramses says:

    Install went good, but I dont like the font colors

  15. Barbara says:

    Hello … At first, I got the same fatal error as Roman, but I followed your instructions and changed the line to:
    $fullmsg .= “IP: “.$_SERVER[REMOTE_ADDR];

    However, when I try to send a message from the site, I get this response:
    There was a problem sending your message, please try again!

    I’ve made sure my correct email is entered in the Form options, and it still doesn’t work.

    Can you think of anything else I may be doing wrong?

  16. Jesper says:

    @Barbara:

    I think that it might be some problem with the settings of your webhost, since that error message signifies problem with sending the actual mail, something that is handeled by the server.

    Verify the email adress and try again. If the problem persist you might want to contact your webhost.

  17. Sasha says:

    Everything works fine except one thing… When I specify “Send completed form to” and submit form, nothing happens. Error messages shown at every field and they are empty…

  18. Sasha says:

    When I sad empty fields, I mean contact form, not admin form!

  19. patobrocks says:

    Hi,

    In the instructions “Create a page and add the text [ wp_simple_contact_form ]”

    Where do I put the text and is the text without the brackets or with?

    thanks

  20. Jesper says:

    patobrocks: just add the [ wp_simple_contact_form ] to the post body, with the brackets. Use the editor in HTML mode (source code mode).

  21. YD says:

    Hello my friend.
    I found some security problems in the html encoding tag characters in your script.

    In part / / Generate form:

    Replace :

    ‘.$_POST['Sender_name'].’
    by
    ‘.esc_attr($_POST['sender_name']).’

    ‘.$_POST['Email'].’
    by
    ‘.esc_attr($_POST['email']).’

    ‘.$_POST['Subject'].’
    by
    ‘.esc_attr($_POST['subject']).’

    ‘.$_POST['Message'].”
    by
    ‘.esc_attr($_POST['message']).’

    ________

    For more informations : http://codex.wordpress.org/Function_Reference/esc_attr

    And sorry for my english… i’m french.
    Bye and good fix.

  22. [...] WP-Simple-Contact-Form-with-Captcha [...]

  23. Sandra says:

    Hi,

    I’m probably missing something very simple here, but I don’t understand how I can change the form into Spanish.

    I’ve changed the sv_SE file, but in the wordpress editor thingy. I’m not sure how to save it or change the name. I’m not using a personal server and everything I install, installs right away online, so not first on my computer.

    Any help (preferably in easy terms) would be greatly appreciated!

    Thank you!!

  24. Carolynne says:

    I have installed this form on my website, but I can’t get the grey border to go away, I’ve stripped the CSS file of all borders and have looked all over the theme’s options and nothing is working. Any suggestions? TIA

Leave a Reply