Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function education()
- {
- if ('POST' == $_SERVER['REQUEST_METHOD']) {
- if (!isset($_POST['description'], $_POST['school'], $_POST['from'], $_POST['to']))
- {
- echo Messages::$fieldDefinedFalse;
- }
- else
- {
- echo Education::insertEducation($_POST['school'], $_POST['description'], $_POST['from'], $_POST['to'], $_POST['status'], $_SESSION['user_id']);
- }
- }
- else
- {
- /*** set a template variables ***/
- $this->registry->template->educationHeader = 'Insert Education';
- /*** load the index template ***/
- $this->registry->template->show('insert_education');
- }
- }
Add Comment
Please, Sign In to add comment