Simple Basic Contact Form is a clean, secure, plug-n-play contact form for WordPress. Minimal yet flexible, SBCF delivers clean code, solid performance, and ease of use. No frills, no gimmicks, just a straight-up contact form that’s easy to set up and style for any theme.
For a contact form with more options and features, check out Contact Coldform, or continue reading to learn more about Simple Basic Contact Form.
Overview
Here are some of my favorite features of Simple Basic Contact Form:
- Plug-n-play – use shortcode or template tag to display the form anywhere on your site
- Sweet emails – SBCF sends descriptive, well-formatted email messages in plain-text
- Safe and secure – Simple Basic Contact Form blocks spam and filters malicious content
- Ultra-clean code – SBCF is lightweight, standards-compliant, semantic, valid markup
- Fully customizable – SBCF is easy to configure and style from the Settings page
Here is a screenshot showing the form displayed on WP’s default Twenty Eleven theme:
![[ WordPress Plugin: Simple Basic Contact Form ]](http://perishablepress.com/wp/wp-content/images/2012/simple-basic-contact-form-01.jpg)
SBCF contact form (view more screenshots)
Features
Here are some of the main features for Simple Basic Contact Form:
- Slick, toggling-panel Settings Page makes it easy to customize
- Style the form via the Settings Page using your own custom CSS
- Provides template tag to display SBCF anywhere in your theme
- Provides shortcode to display SBCF on any post or page
- Displays customizable confirmation message to the sender
And even more features:
- Works perfectly without JavaScript.
- Option to reset default settings
- Options to customize many aspects of the form
- Options to customize success, error, and spam messages
- Option to enable and disable CSS styles
- Email message includes IP, host, agent, and other user details
- Customizable form-field captions, error messages, and success message
Here is a screenshot showing the SBCF settings page:
![[ WordPress Plugin: Simple Basic Contact Form ]](http://perishablepress.com/wp/wp-content/images/2012/simple-basic-contact-form-02.jpg)
SBCF Settings page (view more screenshots)
Anti-spam & Security
- Captcha – includes challenge question/answer (w/ option to disable for users)
- Firewall – secure form processing protects against bad bots and malicious input
- User-friendly – same-page error messages to help users complete required fields
Clean Codes
- Crisp, clean markup: clean source code with proper formatting, alignment and spacing
- Crystal clear emails: delivered emails deliver descriptive, well-formatted content
- Better performance: custom CSS styles load only where the contact form is displayed
Installation & Usage
Typical plugin install: upload, activate, and customize in the WP Admin:
- Unzip and upload the entire directory to your “plugins” folder and activate.
- Use the shortcode to display SBCF on any post or page, or:
- Use the template tag to display the SBCF anywhere in your theme.
- Visit the SBCF Settings Page to configure your options and for more information.
Shortcode
[simple_contact_form]
Template tag
<?php if (function_exists('simple_contact_form')) simple_contact_form(); ?>
Screenshots
Here are some screenshots of Simple Basic Contact Form running with WP’s default theme, Twenty Eleven (using default plugin options):
- Screenshot of email message
- Plugin settings (panels toggled closed)
- Plugin settings (panels toggled open)
- Screenshot of the contact form
- Screenshot showing “email sent!” message
Markup & Styles
Here is the HTML markup used to create the contact form (default settings):
<div id="simple-contact-form">
<form action="http://perishablepress.com/contact/" method="post">
<fieldset class="scf-name">
<label for="scf_name">Name (Required)</label>
<input name="scf_name" id="scf_name" type="text" size="33" maxlength="99" value="" placeholder="Your name" />
</fieldset>
<fieldset class="scf-email">
<label for="scf_email">Email (Required)</label>
<input name="scf_email" id="scf_email" type="text" size="33" maxlength="99" value="" placeholder="Your email" />
</fieldset>
<fieldset class="scf-response">
<label for="scf_response">1 + 1 =</label>
<input name="scf_response" id="scf_response" type="text" size="33" maxlength="99" value="" placeholder="2" />
</fieldset>
<fieldset class="scf-message">
<label for="scf_message">Message (Required)</label>
<textarea name="scf_message" id="scf_message" cols="33" rows="7" placeholder="Your message"></textarea>
</fieldset>
<div class="scf-submit">
<input type="submit" name="Submit" id="scf_contact" value="Send email">
<input type="hidden" name="scf_key" value="process">
</div>
</form>
</div>
And here is a complete set of CSS hooks for styling the form (visit the settings page to add custom styles):
div#simple-contact-form {}
div#simple-contact-form form {}
#simple-contact-form fieldset {}
#simple-contact-form label {}
#simple-contact-form input {}
#simple-contact-form textarea {}
#simple-contact-form fieldset input {} /* excludes submit button */
#simple-contact-form div.scf-submit input {} /* submit button */
#simple-contact-form input:focus,
#simple-contact-form textarea:focus {}
p.scf_spam,
p.scf_error {}
p.scf_success {}
p.scf_reset {}
#scf_success {}
#simple-contact-form fieldset input.scf_error {}
#simple-contact-form fieldset textarea.scf_error {}
Demos
I’ve got two demos of SBCF online, one here at Perishable Press and the other at my test site, Bluefeed.net. If you want to send a test email, please use the one at Bluefeed.net – thanks.
Download
Download SBCF from the WP Plugin Directory:
Download Simple Basic Contact Form
62 Responses
cowboy Mike – April 8, 2013 •
Hi Jeff,
Could you please read my post above dated January 31, 2013, and see if you might have a suggestions for me?
Thank you very much and happy trails,
Mike
cowboy Mike – April 8, 2013 •
Howdy Jeff,
The sbcf is working just fine for me out of the box with the exception is doesnt send a carbon copy to sender. Do you know how I might troubleshoot this?
Happy trails, Mike
Jeff Starr – April 9, 2013 •
Yes, there is a setting box that must be checked to enable the carbon copies.. if you’ve already tried that and it’s still not working, have a look at 229-234 in the plugin file. Those lines contain the two mail functions, one for sending the original and the other for sending the carbon copy.
Matt Mayes – April 16, 2013 •
Having trouble customizing the “message sent” appearance on my site. Is there a particular div that i should style or position for this, to change from the default? maybe something like .scf_success {display:absolute; …etc ;} ?
Matt Mayes – April 16, 2013 •
part two: I tried this and it is working pretty good for me in my css. I’m experimenting with different attributes for it now.
#scf_success {}
Charlotte – April 25, 2013 •
Thanks for this great plugin. I’m just having one issue with it: the offset does not appear to be having any affect on the time of message. It just displays UTC no matter what I put in for offset.
Am I missing something else that needs to be set for this to work?
Jeff Starr – April 25, 2013 •
Hmm, not sure what’s changed or at issue, but have added this to the to-do list for the next update. Thank you for providing feedback.
Bob Garon – May 2, 2013 •
I cannot get this to work and it seems like it should be super simple. I inputted my email address into the settings and added the form to my page, but I never receive the email. Please advise!
Jeff Starr – May 2, 2013 •
Some servers have different rules for sending mail. Do you know if it’s possible to send mail using any other plugin? That will let you know if the issue is related to how the server is setup to handle mail.
Bob Garon – May 2, 2013
I tried another plugin and the same result occurred with nothing being sent.
Jake – May 3, 2013 •
It is possible for me to get the code in a page template format instead of a plugin?
Jeff Starr – May 5, 2013 •
If I had it ready I would post it, but currently it’s written as a WP plugin. But there should be plenty of good standalone scripts that should be suitable.
Caroline – May 21, 2013 •
Hi there-I would like to make some edits to the layout of the form:
1. No initial content in the field
2. the label under the field.
3. Change “send email” on submit button to something else.
I looked to where to edit the HTML markup for the layout but cannot find it-Thanks
Jeff Starr – May 21, 2013 •
Hi Caroline, the form is generated from the main plugin file, simple-basic-contact-form.php. Look for the function, scf_display_contact_form(), on around line 246.
Caroline – May 22, 2013
Thanks that did the trick. Thanks for a great and easily customizable form