Form api
Drupal
Drupal's Form API lets developers programmatically build HTML forms and handle data validation and submission. Module developers should use the Form API for all forms and user-input processing. Theme developers can use the Form API to show/hide elements, add CSS classes, or make other user-facing changes.