70 |
if (isset($inputs_required)) { |
if (isset($inputs_required)) { |
71 |
foreach ($inputs_required as $i) { |
foreach ($inputs_required as $i) { |
72 |
if (! isset($GLOBALS[$i]) || $GLOBALS[$i] == "") $ok=0; |
if (! isset($GLOBALS[$i]) || $GLOBALS[$i] == "") $ok=0; |
73 |
switch ($input_required_type[$i]) { |
switch (strtolower($inputs_required_type[$i])) { |
74 |
case 'email': |
case 'email': |
75 |
if (!strstr($GLOBALS[$i],'@')) $ok=0; |
if (!strstr($GLOBALS[$i],'@')) $ok=0; |
76 |
} |
} |
77 |
|
// print "$i: $GLOBALS[$i] type: $inputs_required_type[$i] $ok -- "; |
78 |
|
|
79 |
} |
} |
80 |
} else { |
} else { |