What is a form action?

The action attribute of an HTML form is the address the browser sends the form's data to when it is submitted.

The action goes on the form tag. With method="POST" the browser sends the fields in the body of a request to that address. Without a method, the browser uses GET and puts the data in the address bar, which is rarely what you want for a contact form.

If there is no action, the form posts back to the page it is on. On a static site nothing is listening there, so the data goes nowhere. This is the most common reason a form "does nothing".

An action of mailto: opens the visitor's email program instead of sending anything. It fails for anyone without one set up, and it exposes your address to spam bots.

Only fields with a name attribute are sent. A field with only an id or a placeholder is left out.

html
<form action="https://formtango.com/f/YOUR_FORM_ID" method="POST">

Related