This is an old revision of the document!


Field checking

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


Feldprüfung allgemein

Label-|-Wert

Beispiel:
Beim Ausklappmenü die erste Option als Fehler melden - z.B. leer oder Strich dann Herr dann Frau als zu wählende Option.

Im Wertefeld wird einfach - eingegeben.

Bitte ausfüllen-|-
Frau
Herr


Feldprüfung E-Mail Ausklappmenü

Beispielaufgabe:
Anhand eines Ortes soll eine bestimmte E-Mailadresse selektiert werden, an die dann die E-Mail ausgeliefert wird.

Die Schreibweise folgt dem oben gezeigten.

In diesen Fall würde die E-Mail-Adr. test02@lokal.arpa ausgewählt, an die dann bei entsprechender Einstellung z.B.
Kopie an: email diese E-Mail versendet wird.

Inhalt des Feldes “E-Mail Ausklappmenü”:

Bitte wählen -|-
Lummerland -|- test01@lokal.arpa
Kleinbonum -|- test02@lokal.arpa
Taka-Tuka-Land -|- test03@lokal.arpa


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/*” - welcher Anhang (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” - Allowed files with these extensions


Siehe auch http://www.phpwcms-docu.de/content_part_formular.phtml

english/phpwcms-system/article/contentparts/form/field-checking.1274390736.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
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