## /shared/code/tce_functions_form.php

Description

Functions to handle XHTML Form Fields.

- since: 2001-11-07
- link: www.tecnick.com
- copyright: Copyright &copy; 2004-2006, Tecnick.com S.r.l. - Via Ugo Foscolo n.19 - 09045 Quartu Sant'Elena (CA) - ITALY - www.tecnick.com - info@tecnick.com
- author: Nicola Asuni

Functions
F_check_fields_format (line 110)

Check fields format using regular expression comparisons.
Returns a string containing a list of wrong fields (comma separated).

NOTE: to check a field create a new hidden field with the same name starting with "x_"

An example powerful regular expression for email check is: ^([a-zA-Z0-9_\.\-]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$

- return: containing a list of wrongfields (if any)

array F_check_fields_format (string $formfields)

- string $formfields: input array containing form fields

F_check_form_fields (line 140)

Check Form Fields.

see: F_check_required_fields, F_check_fields_format

- return: in case of error, true otherwise

false F_check_form_fields ()
F_check_required_fields (line 75)

Check Required Form Fields.
Returns a string containing a list of missing fields (comma separated).

- return: containing a list of missing fields (if any)

array F_check_required_fields (string $formfields)

- string $formfields: input array containing form fields

F_close_button (line 178)

Returns XHTML code string to display a window close button

- return: code string

XHTML F_close_button ()
F_decode_form_fields (line 63)

Returns an array containing form fields.

- return: containing form fields

array F_decode_form_fields ()
F_stripslashes_formfields (line 165)

Strip slashes from posted form fields.

void F_stripslashes_formfields ()
F_submit_button (line 200)

Returns XHTML code string to display Form Submit Button.

- return: code string

XHTML F_submit_button (string $name, string $value, [string $title = ""])

- string $name: button name
- string $value: label for button
- string $title: button title, default=""

Documentation generated on Fri, 24 Nov 2006 21:16:22 +0100 by phpDocumentor 1.3.0RC3