Login   Register  
PHP Classes
elePHPant
Icontem

File: site/lib/helper/form.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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:
Date: 1 year 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;
        }
    }
?>