HTML Form Not Submitting: Missing Action, Method or Name Attributes
Most dead forms lack an action address, a method or field names.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Checklist
- The
<form>has an action pointing to a real handler (a PHP file or service) and a method (postfor most forms). - Each input has a name attribute. Fields without a name are not sent.
- The submit control is a button type submit inside the form.
- A required field with an invalid pattern may silently block submission in the browser.
- JavaScript may be preventing the submit. Check the console. See reading the browser console.
- The handler returns a response, not a blank page or error. See seeing PHP errors.
Static sites without a backend can use a form service. See How to Add a Contact Form to a Static HTML Website Without Writing PHP.
Related guides
- WPForms or Gravity Forms Entries Not Saving
- WordPress Shows the Wrong Time or Publishes at the Wrong Time
- Where to Add Custom CSS or Code in WordPress Without Losing It After Updates
- "The Uploaded File Exceeds the upload_max_filesize" in WordPress: Fix
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.