Download our Free HTML Cheat Sheet - Quick Reference for Beginners

Email form submission code generator

Build a form that emails its submissions straight to your inbox - add whatever fields you need (text, checkboxes, radio buttons and more), and this generates the ready-to-paste HTML. It's a flexible building block: rather than locking you into one backend, you wire the generated form up to whatever you're already using - your own script, a form-handling service, or anything else that accepts a standard POST.

Want the backend written for you instead - server-side validation and spam protection included, no PHP to write yourself? Our PHP contact form generator is the complete, ready-made option.

You can use this generator to create the entire form including all fields, or skip the 'form items' section and just fill out the 'submit properties' to get the code used for emailing forms, ready to slot into a form you've already built. If you're doing it this way, use the first piece of code in place of the <form> tag already in your form, and the <input> line in place of the <input> button already in your form.

Form item instructions (if required):

  1. select type of field
  2. choose the value of the field, or what gets displayed within the field
  3. choose a name for each field. This doesn't get displayed, it's an 'identifier'
  4. choose lengths etc of fields as applicable
  5. click on 'add item', then go back to the start and create another field if
    desired clicking on 'add item' for each one
  6. when you have all of the fields you want, continue down to the submit properties
    and fill in the necessary information
  7. click generate, then copy and paste the code where you want it on your page

Basic options
Hide section

These options apply to all of the items you create.
I want to:

Form name:
Must be the only form on the page with this name
Font family:

Font color:
Font size:
Layout:
Div padding:

Form item

Type:

Label options

Label:
Text
Suffix
Font style:
Text decoration line:

Field options

Field name:
Name must be unique
Initial text
Placeholder
Button text:
Padding
Left margin
Dimensions:
Width
Height
Leave at 0 if you don't want to set a value
Border style:
Border radius
Max chars
Leave at 0 if you don't want to set a value