cvs: peardoc /en/package/html/html-quickform intro-validation.xml

From: Date: Sat, 19 Jul 2003 11:35:04 +0000
Subject: cvs: peardoc /en/package/html/html-quickform intro-validation.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-1079@lists.php.net to get a copy of this message
mansion Sat Jul 19 07:35:04 2003 EDT Modified files: /peardoc/en/package/html/html-quickform intro-validation.xml Log: Added elementName (used in functions) Index: peardoc/en/package/html/html-quickform/intro-validation.xml diff -u peardoc/en/package/html/html-quickform/intro-validation.xml:1.2 peardoc/en/package/html/html-quickform/intro-validation.xml:1.3 --- peardoc/en/package/html/html-quickform/intro-validation.xml:1.2 Wed May 28 11:30:33 2003 +++ peardoc/en/package/html/html-quickform/intro-validation.xml Sat Jul 19 07:35:04 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.html.html-quickform.intro-validation"> <refnamediv> <refname>Introduction - validation and filters</refname> @@ -125,10 +125,11 @@ /** * Validate an email address * + * @param string $elementName Form element name * @param string $email Email address to validate * @param boolean $domainCheck Check if the domain exists */ -function checkEmail($email, $domainCheck = false) +function checkEmail($elementName, $email, $domainCheck = false) { if (preg_match('/^[a-zA-Z0-9\._-]+\@(\[?)[a-zA-Z0-9\-\.]+'. '\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/', $email)) {

« previous php.pear.doc (#1079) next »