Validating html forms before processing to a php script

The forms section of HTML5 was originally a specification titled Web Forms 2.0 that added new types of controls for forms.

Started by Opera and edited by then-Opera employee Ian Hickson, it was submitted to the W3C in early 2005. It was then combined with the Web Applications 1.0 specification to create the basis of the breakaway Web Hypertext Application Technology Working Group (WHATWG) HTML5 specification.

The deprecated examples are highlighted and readers should approach them with caution -- they are meant for illustrative purposes only.

This version has been published to correct some broken links in the previous version.

The important characteristics of a form handler is that it verifies that the required variables have been set, and that they have appropriate values.

validating html forms before processing to a php script-30validating html forms before processing to a php script-66validating html forms before processing to a php script-8validating html forms before processing to a php script-70

If you pass a condition, that condition will be checked before running the validation.

The 6 November 2000 version of this document is a Note in a series of Notes produced and endorsed by the Web Content Accessibility Guidelines Working Group (WCAG WG).

This Note has not been reviewed or endorsed by W3C Members.

Note: As this article is a book excerpt, browser renderings of attributes and input types may have altered since the screenshots were taken.

Additionally, browser support may have increased since publication so please refer to the links at the end of the article for the current state of browser support.