Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 21st, 2010 | Syntax: None | Size: 0.34 KB | Hits: 61 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1.         function emptyCheck() {
  2.                 $args = func_get_args();
  3.                 $num = func_num_args($args);
  4.                 $val = 0;
  5.                 while($val == $num) {
  6.                         if($args == "") {
  7.                                  $error = "<li>Not all of the required fields were completed, please return and enter all required fields</li>";
  8.                                 break;
  9.                         }
  10.                         $val++;
  11.                 }
  12.                 $this->errors = $error;
  13.                 return $this->errors;
  14.         }