PHP Classes

File: site/lib/helper/form.php

Recommend this page to a friend!
  Classes of Muhammad Mengrani   PHP CouchDB Product CRUD   site/lib/helper/form.php   Download  
File: site/lib/helper/form.php
Role: Auxiliary script
Content type: text/plain
Description: Class source
Class: PHP CouchDB Product CRUD
Manage products stored in a CouchDB database
Author: By
Last change: Update of site/lib/helper/form.php
Date: 11 months ago
Size: 192 bytes
 

Contents

Class file image Download
<?php
function Vaildate($str,$flag){
        if (
$flag == "email"){
                return ( !
preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE;
        }
    }
?>