depage\htmlform\elements Namespace Reference

Detailed Description

Classes for HTML input-elements.

All Classes in this namespace are HTML input-elements that can be added to instances of the htmlform-class, but also to also to fieldsets and steps:

These are the most used elements that are added to the form with the add-method:

<?php
$form = new depage\htmlform\htmlform('simpleForm');
// input[type=text]
$input = $form->addText('input', array('label' => 'Normal Input'));
// input[type=email]
$form->addEmail('email', array('label' => 'Email Input'));
// input[type=url]
$form->addEmail('url', array('label' => 'URL Input'));
// input[type=password]
$form->addPassword('password', array('label' => 'Password Input'));
// input[type=date]
$form->addDate('date', array('label' => 'Date Input'));
// input[type=number]
$form->addNumber('number', array('label' => 'Number Input'));

Classes

class  address
 Default address fieldset. More...
 
class  boolean
 HTML single checkbox input type. More...
 
class  color
 HTML color input type. More...
 
class  country
 HTML-multiple-choice country input select . More...
 
class  creditcard
 Default creditcard fieldset. More...
 
class  date
 HTML date input type. More...
 
class  datetime
 HTML datetime input type. More...
 
class  datetimelocal
 HTML datetime-local input type. More...
 
class  email
 HTML email input type. More...
 
class  fieldset
 The fieldset class holds HTML-fieldset specific attributes and methods. More...
 
class  file
 HTML file input type. More...
 
class  hidden
 HTML hidden input type. More...
 
class  html
 Can be used to insert custom HTML between rendered HTML elements. More...
 
class  month
 HTML month input type. More...
 
class  multiple
 HTML-multiple-choice input type i.e. checkbox and select. More...
 
class  number
 HTML number input type. More...
 
class  password
 HTML password input type. More...
 
class  placeholder
 Adds a placeholder for a form element. More...
 
class  placeholdermultiple
 Placeholder for form multiple form values. More...
 
class  range
 HTML range input type. More...
 
class  richtext
 HTML richtext element. More...
 
class  search
 HTML search input type. More...
 
class  single
 HTML-single-choice input type i.e. radio and select. More...
 
class  state
 HTML-multiple-choice States input select . More...
 
class  step
 Steps break up forms into separate consecutive parts. More...
 
class  stepnav
 Can be used to insert a step navigation. More...
 
class  tel
 HTML tel input type. More...
 
class  text
 HTML text input type. More...
 
class  textarea
 HTML textarea element. More...
 
class  time
 HTML time input type. More...
 
class  url
 HTML url input-type. More...
 
class  week
 HTML week input type. More...