Create an HTML Contact Form for Free

Get your free HTML contact form code and paste it on your website or use 123ContactForm to create HTML contact forms without coding

Create contact forms in HTML that work

As soon as you sign up, you can start customizing your form. Our form builder automatically generates HTML code that you can add to your contact page or any other web page.

A contact form is a must if you want to hear from visitors. Facebook pages and email newsletters are two key places to use contact forms. Here, we show you how to generate code for an HTML contact form, including a PHP script that will send form responses to you.

The HTML contact form script

						<form id="contact_form" action="#" method="POST" enctype="multipart/form-data">
	<div class="row">
		<label for="name">Your name:</label><br />
		<input id="name" class="input" name="name" type="text" value="" size="30" /><br />
	</div>
	<div class="row">
		<label for="email">Your email:</label><br />
		<input id="email" class="input" name="email" type="text" value="" size="30" /><br />
	</div>
	<div class="row">
		<label for="message">Your message:</label><br />
		<textarea id="message" class="input" name="message" rows="7" cols="30"></textarea><br />
	</div>
	<input id="submit_button" type="submit" value="Send email" />
</form>						
					

Step 1: Create a form

First, we'll generate HTML code for a basic form that asks for a Name, Email Address and Message.

Step 2: Add a script

Once we have the HTML code for the form, we just need to add a PHP script to verify and process the form.

Creating the script requires basic understanding of PHP, but you can use our free HTML contact form code generator to speed up the process.

The image to the left shows how your form will look in the browser if you save the code above. To download the full code for the form, including the PHP script, click here.

Build great forms with our
contact form generator

That's all it takes to generate simple, fully functional HTML code for contact forms. Pretty easy, right? If you need to take your forms to the next level, you can do that too. Additional features include:

All of these features and more come with our simple HTML contact form code generator. Don't hesitate to try it out!

Create a Free Account

By signing up, you're agreeing with the 123ContactForm Terms of Service