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

From: Date: Fri, 07 Nov 2003 10:30:10 +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-1893@lists.php.net to get a copy of this message
avb Fri Nov 7 05:30:10 2003 EDT Modified files: /peardoc/en/package/html/html-quickform intro-validation.xml Log: Forgot to fix the email validation example... Index: peardoc/en/package/html/html-quickform/intro-validation.xml diff -u peardoc/en/package/html/html-quickform/intro-validation.xml:1.6 peardoc/en/package/html/html-quickform/intro-validation.xml:1.7 --- peardoc/en/package/html/html-quickform/intro-validation.xml:1.6 Fri Nov 7 05:27:42 2003 +++ peardoc/en/package/html/html-quickform/intro-validation.xml Fri Nov 7 05:30:09 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <refentry id="package.html.html-quickform.intro-validation"> <refnamediv> <refname>Introduction - validation and filters</refname> @@ -187,11 +187,10 @@ /** * 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($elementName, $email, $domainCheck = false) +function checkEmail($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 (#1893) next »