"Simplest contact form"
Bootstrap 3.1.0 Snippet by msurguy

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-md-6 col-md-offset-3"> <div class="well well-sm"> <form class="form-horizontal" action="" method="post"> <fieldset> <legend class="text-center">Contact us</legend> <!-- Name input--> <div class="form-group"> <label class="col-md-3 control-label" for="name">Name</label> <div class="col-md-9"> <input id="name" name="name" type="text" placeholder="Your name" class="form-control"> </div> </div> <!-- Email input--> <div class="form-group"> <label class="col-md-3 control-label" for="email">Your E-mail</label> <div class="col-md-9"> <input id="email" name="email" type="text" placeholder="Your email" class="form-control"> </div> </div> <!-- Message body --> <div class="form-group"> <label class="col-md-3 control-label" for="message">Your message</label> <div class="col-md-9"> <textarea class="form-control" id="message" name="message" placeholder="Please enter your message here..." rows="5"></textarea> </div> </div> <!-- Form actions --> <div class="form-group"> <div class="col-md-12 text-right"> <button type="submit" class="btn btn-primary btn-lg">Submit</button> </div> </div> </fieldset> </form> </div> </div> </div> </div>
body {padding-top:20px;}

Related: See More


Questions / Comments:

I am trying to figure out the same thing. Found this tutorial but I have not been able to make it work yet: http://www.html5templatesdr...

Johari Fuentes () - 10 years ago - Reply -1


A form without the PHP files to send it, is not overly helpful. Can you add the PHP needed to send it? I really like how simple it is though. Looks awesome!

colourinfusion () - 2 years ago - Reply 0


A form without the PHP files to send it, is not overly helpful. Can you add the PHP needed to send it? I really like how simple it is though. Looks awesome!

colourinfusion () - 2 years ago - Reply 0


How do you make the button submit to your own email?

WebWubWUB () - 10 years ago - Reply 0


You need a backend (server side) script for that, for example built with PHP or Node.js

maxsurguy () - 10 years ago - Reply 0


Are there any scripts, similar to these, available as templates?
Like built using pearl or PHP or something like that?
Total noob here sorry

dmydrlng () - 10 years ago - Reply 0