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:
Date: 6 years ago
Size: 192 bytes


Class file image Download
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;