"Validation Only"

I thought I would post a free snippet of my codeigniter validation form with bootstrap 3.

To make this work you must have the right bootstrap 3 stylesheets & javascripts and codeigniter installed.

Start Off

Controller For Contact Form. "Remember Validation Only Email Not Configured"

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Contactus extends CI_Controller {

	public function index() {

		$this->load->library('form_validation');

		$this->form_validation->set_rules('name', 'Name', 'required');
		$this->form_validation->set_rules('email', 'Email', 'required');
		$this->form_validation->set_rules('website', 'Website', 'required');
		$this->form_validation->set_rules('subject', 'Subject', 'required');
		$this->form_validation->set_rules('message', 'Message', 'required');


		if($this->form_validation->run() == FALSE)
		{
			$this->load->view('header');
			$this->load->view('contactus');
			$this->load->view('footer');
		}
		else
		{
			$this->load->view('header');
			$this->load->view('confirmation');
			$this->load->view('footer');
		}

	}
}

View Page

Code:
<div class="row">
	<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
		<div id="contactus">
			<h1>Contact Us</h1>
			<hr>
			<form role="form" method="post" action="">
				<div class="form-group">
					<input type="text" class="form-control" placeholder="Your Name" name="name" >
					<?php echo form_error('name', '<div class="alert alert-danger contact-warning">', '</div>'); ?>
				</div>
				<div class="form-group">
					<input type="text" class="form-control" placeholder="Your Email" name="email">
					<?php echo form_error('email', '<div class="alert alert-danger contact-warning">', '</div>'); ?>
				</div>
				<div class="form-group">
					<input type="text" class="form-control" placeholder="Your Website Address" name="website">
					<?php echo form_error('website', '<div class="alert alert-danger contact-warning">', '</div>'); ?>
				</div>
				<div class="form-group">
					<input type="text" class="form-control" placeholder="Your Subject" name="subject">
					<?php echo form_error('subject', '<div class="alert alert-danger contact-warning">', '</div>'); ?>
				</div>
				<div class="form-group">
					<textarea class="form-control" rows="10" placeholder="Please Enter Your Message" name="message"></textarea>
					<?php echo form_error('message', '<div class="alert alert-danger contact-warning">', '</div>'); ?>
				</div>
				<hr>
				<div class="form-group">
					<button type="reset" class="btn btn-danger">Clear Form</button>
					<button type="submit" class="btn btn-success">Send Message</button>
				</div>
			</form>
		</div>
	</div>
</div>