"Simplest contact form"
Bootstrap 3.1.0 Snippet by msurguy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
body {padding-top:20px;}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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 () - 3 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 () - 3 years ago - Reply 0


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

WebWubWUB () - 11 years ago - Reply 0


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

maxsurguy () - 11 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