Contact Forms Comparison

Contact form is an integral part of any website. It provides a medium for the customer to connect directly with the users. Traditional html forms always work but Wufoo, Google Forms, WordPress Contact Form, and so on are the latest contact forms taking over the website world. They are equipped with inbuilt functionalities which otherwise require hours of programming.

HTML and PHP

Traditional HTML Contact forms involve creating forms with ids and capturing them via php and storing in database. The values from the MySQL database could be later retrieved in to a Excel sheet or a web page. This version works fine even now. The developer needs to take care of SQL injection, blank values, naming the fields in the database, and so on. With HTML 5,  the inbuilt validations come in handy for developers. A lot of code needed to store and retrieve values from database. Further, the out put where the values are displayed or stored must also be taken care of. Sending the form values to an email via the mailto function is the safest and simplest way to achieve the goal. Adding recaptcha is another safety measure for added security. In addition, blocking spam bots at server side is good for securing your website and contact forms.

Wufoo

Wufoo is another way of adding contact form to your website. However, the entire data and control is with them. Wufoo has four pricing options. The basic version of the form lets you add the fields and put the code on your website. The form also comes with captcha so you don’t have to worry about any additional coding. The data is stored on Wufoo site which can be accessed via your Wufoo login. Wufoo lets you create three forms and three reports in the basic package. The reports are awesome too and you can customize any way you want. The report can further be downloaded in to a Excel file or as a CSV file for further processing. Wufoo forms are great for basic requirements. But, if you want the paid versions you can buy Wufoo membership depending upon your requirements. The basic version also leaves the big message about ‘Form created with Wufoo’ message on your website. You can remove that with paid version. Wufoo also has surveys and emails which can be added later with paid packages.

WordPress ContactForm Plugin

Another gem is the WordPress ContactForm plugin, which you need to set up to be used on your website or blog. The ContactForm plugin is free and can be set up by downloading the plugin from the WordPress Plugins. You can have multiple forms with this plugin and can set up the colors and fields based on your client’s requirements. It comes with captcha for added security. But, ContactForm 7 needs to be updated for latest bug fixes and releases. You can send emails with contact forms in them using this plugin. However, you need to be aware of how to set it up otherwise you will end up with lot of errors. This has to be tested in multiple browsers and devices as the form throws an error if you give invalid input names that are reserved in this plugin. I think this ContactForm is great again and the data can be import or export data from the WordPress admin tools.

Google Forms

If you are a big fan of Google and use Google Apps for most of your web business and data management, Google Forms are a great way. With your google login you can create the form and get the code in your website. Once you submit the form, thank you message from Google Forms remains on the screen. You can edit the colors and fields and set up is easy. You can limit the number of responses, include surveys, send confirmation messages,  and so on. The plugins available for Chrome make the set up even more efficient. If you want to send an attachment with the confirmation message, you have to set a trigger for the function on the form submit. First, save the document to be sent in your google drive, then get the id of the document by opening it in a new window. Set up the Google script to send the mail with subject, body, and attachment to the email specified in the Google Contact Form. You may need to test it out multiple times before you can successfully send the attachment. Spend some time to get a hang of the Google script and related errors. Google Forms Example shows that the data can be saved in an excel sheet on your drive or you can specify the format required. The beauty of the Google Forms is that the Contact Form data sheet on your drive is instantly updated. Sending confirmation messages and sending mail to self is also simple. You can set to send you daily or weekly reports as well.

Let me know how you incorporated Contact form in your website and which you think is the best! Here is one so you can contact me. 🙂

 

Integrate a WordPress Blog to Your Bootstrap Website

So, you built a great website in bootstrap. Your site is live and great, works fine in all devices and browsers, everything is perfect. Now, your customer wants to add a blog to your website. WordPress has great themes for blogs but none of them are going to look like your custom website. Here is how you can integrate the WordPress blog into your website and make the blog look same as the rest of your website. You can create your own WordPress theme!

WordPress Blog

WordPress blog is great as it is perfect for content management, backend, and frontend. You can add multiple users, media, plugins, comments, and so on. Backups and versioning is great with WordPress blogs. Corporates have been building full fledged websites using WordPress Divi themes. Inorder to integrate a WordPress blog to your HTML site built using bootstrap, you can follow certain steps and achieve same functionality.

Settings in the cpanel

  1. First install WordPress in your root folder and give the folder name blog.
  2. Download bootstrap and save in the wp-content-themes folder.
  3. Save additional css such as font-awesome and other css you used in your Bootstrap website in the same folder as bootstrap css
  4. Create new index.php, home.php, header.php, footer.php, sidebar.php, functions.php, page.php, single.php, style.css. Each of the files have their significance in creating your theme in WordPress.
    • index.php: Loads your blog
    • home.php: Loads the blog posts from the database
    • header.php: Loads the header in every post when the get_header() function is called
    • footer.php: Loads the footer in every post when the get_footer() function is called
    • sidebar.php: Loads the sidebar contents when the get_sidebar() function is called
    • functions.php: Needed to load the jQuery in wordpress package to this website and also the sidebar contents
    • page.php: Loads the page you create and can act as a template for every page in your WordPress blog or Website
    • single.php: Loads the individual post which the user clicks in a page with comments function
    • style.css: Loads the styles for this blog
  5. Edit header.php and copy paste the content including the navbar from your existing website template. Edit the css href to php function bloginfo. Load the stylesheet_url using the function. Add wp_head and wp_enqueue_script to load jquery in this page. Save header.php. In the navbar list, add wp_list_pages function to get the additional blog page you created in the WordPress admin login. This way, your WordPress blog will be at the end of the menu items in your website. After the blog is setup, go ahead and edit all the pages of your website and add menu item blog to link it to the blog page.
  6. Edit footer.php and copy paste the footer section of your website template. Remove all the javascript functions at the end and add wp_footer() function. Save footer.php.
  7. Edit sidebar.php and add the function dynamic sidebar to get the sidebar content on all pages and make the sidebars widget friendly. It will load the sidebar contents if there are any existing. Save sidebar.php
  8. Edit index.php and load the get_header() function first. Next, in a loop check the posts and load the posts and the title and content using the the_title and the_content functions. If there are no posts display a message, saying there are no posts. At the ends, load the get_footer() function.Save index.php
  9. Edit page.php. Load the header and footer contents. Divide the page into two columns and load the posts in the left column and the sidebar in the right column. Save page.php
  10. Edit functions.php. Add function to register the scripts such as bootstrap.min.js and script.js in the page. Then enqueue the scripts of your page. Add another function to register the sidebar contents and the before_widget, after_widget, before_title, and after_title style of the sidebar contents. Save functions.php. You can override the default jQuery that comes with the WordPress install with a latest version in the functions.php.
  11. Edit home.php and load the header, footer and sidebar. In a if condition, check if there are any existing posts. For every post, get the post title, links, content, and date, using respective functions. If there are no posts, display a message. Save home.php. WordPress uses home.php to load the blog posts. Save home.php
  12. Edit single.php and and load the header, footer and sidebar. Get the contents of the post and get comments section. This page will be loaded if a single post is clicked. Save single.php
  13. Edit style.css and import the bootstrap, font-awesome, and other css used in your website. Edit the navbar and footer styles to load exactly the same way as the rest of your website. WordPress uses style.css to load the style for your blog. Save style.css.
  14. If you have multiplepages in your blog, you can have a front-page.php and load the header, footer, and sidebar there.

Settings in the WordPress login

Login to your website and blog using the WordPress credentials. Delete the existing page and create a new page called Blog. In the Settings, go to Readings and set the page to load the latest posts. In the appearance settings select the new them you have created. Go to Live Preview and test the site if it is loading properly. Make your current theme as the default theme for your WordPress and start writing blogs. Voila! you are almost done.

Keep checking for the WordPress updates and backups. Test it in all devices and browsers for responsiveness. Maintain your site and the WordPress blog at the same time with minimal distraction to the user. Add some ads to your blog to make some dollars!! 🙂