fork download
  1. <?php
  2. if ($_SERVER['REQUEST_METHOD'] == 'POST') {
  3. $registerStudentForm->fillDataFromArray($_POST);
  4.  
  5. $errors = $this->validations->validRegisterStudentForm($registerStudentForm);
  6.  
  7. if (!$errors->hasErrors()) {
  8. $student = $registerStudentForm->getStudent();
  9.  
  10. $student->setPassword($registerStudentForm->getPassword());
  11.  
  12. $this->studentGateway->addStudent($student);
  13.  
  14. $this->registrationHelper->redirect($_GET['go']);
  15. }
  16. }
  17.  
  18.  
Success #stdin #stdout #stderr 0.03s 52480KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Notice:  Undefined index: REQUEST_METHOD in /home/h0W3r3/prog.php on line 2