/[corp_html]/inc/common.inc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/common.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by dpavlin, Wed Feb 28 14:16:38 2001 UTC revision 1.9 by dpavlin, Sun Mar 18 23:36:26 2001 UTC
# Line 63  if ($multi_page) { Line 63  if ($multi_page) {
63    
64  }  }
65    
66    function check_required() {
67            global $inputs_required;
68            global $inputs_required_type;
69            $ok=1;
70            if (isset($inputs_required)) {
71                    foreach ($inputs_required as $i) {
72                            if (! isset($GLOBALS[$i]) || $GLOBALS[$i] == "") $ok=0;
73                            switch ($input_required_type[$i]) {
74                                    case 'email':
75                                            if (!strstr($GLOBALS[$i],'@')) $ok=0;
76                            }
77    
78                    }
79            } else {
80                    print "<!-- no inputs required -->";
81            }
82            return $ok;
83    }
84    
85  ?>  ?>

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.26