Strict Standards: Declaration of action_plugin_dlcount::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/dlcount/action.php on line 14

Strict Standards: Declaration of action_plugin_indexmenu::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/indexmenu/action.php on line 169

Strict Standards: Declaration of action_plugin_ipban::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/ipban/action.php on line 67

Strict Standards: Declaration of action_plugin_loglog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/loglog/action.php on line 82

Strict Standards: Declaration of action_plugin_navi::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/navi/action.php on line 46

Strict Standards: Declaration of action_plugin_uparrow::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/uparrow/action.php on line 69

Strict Standards: Declaration of action_plugin_userspagecreate::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/userspagecreate/action.php on line 97

Strict Standards: Declaration of cache_instructions::retrieveCache() should be compatible with cache::retrieveCache($clean = true) in /home/www/wiki/inc/cache.php on line 289

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/auth.php on line 312

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/actions.php on line 154
Field checking [phpwcms-HowTo:wiki]

Strict Standards: Declaration of syntax_plugin_code::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/code/syntax.php on line 41

Strict Standards: Declaration of syntax_plugin_tip::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/tip/syntax.php on line 38

Field checking

Examination of the field inputs:
by Oliver Georgi » Sun Jul 19, 2009 14:45


Field checking general

Label-|-value

Example:
In select menu the first option to sign as an error - e.g. blank or dash, after this mister or misses to be selected as option.

In the value field we entered a simply -.

Please select-|-
Frau / Ms.
Herr / Mr.


Fied checking "select email menu"

Example exercise:
With the help of a place a certain e-mail address is selected, to which the form result is sent..

The notation follows the one shown above.

In this case, the e-mail address test02@lokal.arpa is selected. If e.g. copy to: email is set, the form result is delivered to the selected email.

Content of the field “select email menu”:

Please select -|-
Lummerland -|- test01@lokal.arpa
Kleinbonum -|- test02@lokal.arpa
Taka-Tuka-Land -|- test03@lokal.arpa


Option Group in select menu and list

It is possible to group entries within a select menu or a list (in list no “label-|-value” possible).

Please select-|-
OPTGROUP Label-01
Babaorum
Laudanum
/OPTGROUP
OPTGROUP Label-02
Kleinbonum
Aquarium
/OPTGROUP



Field type: text (spezial)

Enter in the value field e.g.

type="INT"
default="100"
dateformat="d/m/y"


The following types available:

  • INT - Only integer values allowed
  • DEC or FLOAT - Only decimal or float allowed
  • IDENT - Comparison test, only if entering the same as the default value
  • STRING or MIX
  • DATE - checks if a valid date
  • REGEX - (patterns - new value) (REGEX)
    • pattern ="/...regex-pattern.../"
      • e.g. time: “HH:mm”pattern="/((0|1)[0-9]|2[0-3]):([0-5]?[0-9]{2,2})/"


Field type: file

maxlength="10000000"
attachment="1"
folder="content/form"
  • maxlength=“10000000” - Max filesize
  • attachment=“1” - sending as attachment
  • accept=“text/*” - which attachment (Mime-Type)
  • folder=“content/form” - the folder where the file is stored after the upload
  • exclude=“php,asp,php3,php4,php5,aspx,cfm,js” - Exclude files with these extensions when uploading
  • accept=“css,tif” - Extensions of allowed files


Have a look too at http://www.phpwcms-docu.de/content_part_formular.phtml

english/phpwcms-system/article/contentparts/form/field-checking.txt · Last modified: 2010/07/22 16:21 by Knut Heermann (flip-flop)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 79