Example #1
0
 public function add()
 {
     session_start();
     new ValidationModel($_POST, 15, 90, 2, 255);
     $model = new Model();
     $model->addNew($_POST);
     $_SESSION['msg'] = 'student added';
     header("Location: student");
 }