function-F_check_fields_format

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
Overview

Classes

Interfaces

Exceptions

Functions

Function F_check_fields_format

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})(]?)$

Package: com\tecnick\tcexam\shared
Author: Nicola Asuni
Located at shared/code/tce_functions_form.php
Parameters summary
$formfields input array containing form fields
Return value summary
array containing a list of wrongfields (if any)
 

© 2004-2018 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy