WebAIR

Do all forms have a submit button? (FAC19)

Why Is This Important?

If a form is submitted automatically, without being requested by the user, it may result in the wrong information being submitted. Therefore it is important that all forms have a submit button that gives the user the power to submit the form themselves when they are ready.

How To Fix The Problem

Ensure that each form has a submit button (input type="submit", input type="image", or button type="submit").

Example

// Beginning of a basic form with a submit button
<form id="Your login details" action="submit.php" method="post">
<label for="name">Your Name:</label> <input type="text" name="name" id="name" />
<label for="mail">Your Email:</label> <input type="text" name="mail" id="mail" />
<label for="pswrd">Your Password:</label> <input type="password" name="pswrd" id="pswrd" />
<input type="submit" value="Submit" />
</form>

Further Information

  1. http://webaim.org/techniques/forms/controls