Documentation
SPHPlayground manual
sphplayground
sphplayground

HTML FORMS

The HTML tag represents a document section that contains interactive controls to submit information to a web server.

IMPORTANT!

Form components described here are used to build User Interfaces and not to handle the submitted form data!

All built-in HTML form objects implement atleast HtmlForm interface. This interface defines the basic form implementation. Whereas Form is also container for HTML components like Input.

Building HTML forms using FormController and Input components

FormController is the base interface for all functional form content and Input inherits it. Functional form content

All of the following components declare an Input input control for a HtmlForm form.

Basic input components

Framework has many build-in form components that implement basic HTML form elements.

The Select component

The Select component is used to create a drop-down list in forms. The Option components inside a Select component define the available options in the list Option components can be grouped using Optgroup components,

The AnyTimeInput component

Note! This element uses Any+Timeā„¢ DatePicker/TimePicker AJAX Calendar Widget for its functionality.

Number range between -10 and 10

Sliders and range sliders implemntations of RangeInput interface

All sliders in this namespace implement RangeInput interface. These components specify numeric values which must be no less than a given value, and no more than another given value.

A Slider object implements single sliders, whereas RangeSlider component implements double (range) sliders.

These components implement Ion.RangeSlider client side slider element for object oriented PHP. The original Ion.RangeSlider is a jQuery range slider with CSS3 skin support.

The Button interface defines buttons for HTML forms

The Button interface defines buttons for HTML forms.

note: Inside a <button> element you can put text (and other tags. That is not possible with a button created with the <input> tag.