All pastes #809072 Raw Edit

Someone

public php v1 · immutable
·published 2007-12-08 05:58 UTC
rendered paste body
function php_form_check($user, $pw, $confirm_pw, $email){  /*PHP side form check: This function will take in all the fields in the form that needs     to be checked and performs a validation check.*/    print "email:".$email;   $this-> error_catcher = "<meta http-equiv=\"refresh\" content=\"10000;index.php?a=9\">\n";   $error_state = 0;   if (empty($user) || empty($pw) || empty($email)){      $this -> error_catcher = $this->error_catcher . er03;      $error_state++;    }    if (!preg_match("/^[^0-9][A-z0-9_]+([.][A-z0-9_]+)*[@][A-z0-9_]+([.][A-z0-9_]+)*[.][A-z]{2,4}$/",$email)){      $this -> error_catcher = $this->error_catcher . er04;      $error_state++;    }    if (!preg_match("/^[^0-9][a-zA-Z0-9]([.][A-Za-z0-9])*/",$user)){      $this -> error_catcher == $this->error_catcher . er05;      $error_state++;    }    $this -> error_catcher = $this->error_catcher . er_goback;  return $error_state;  }