Guest User

Untitled

a guest
Jun 24th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. public function education()
  2. {
  3. if ('POST' == $_SERVER['REQUEST_METHOD']) {
  4. if (!isset($_POST['description'], $_POST['school'], $_POST['from'], $_POST['to']))
  5. {
  6. echo Messages::$fieldDefinedFalse;
  7. }
  8. else
  9. {
  10. echo Education::insertEducation($_POST['school'], $_POST['description'], $_POST['from'], $_POST['to'], $_POST['status'], $_SESSION['user_id']);
  11. }
  12. }
  13. else
  14. {
  15. /*** set a template variables ***/
  16. $this->registry->template->educationHeader = 'Insert Education';
  17. /*** load the index template ***/
  18. $this->registry->template->show('insert_education');
  19. }
  20. }
Add Comment
Please, Sign In to add comment