/** * * Data upload action * Capturing info from account who is * attended to upload data to the system * */ public function datauploadAction() { $folderObj = new Application_Model_Folder($this->user); if ($this->request->isPost()) { $act_id = $this->request->getParam('accountid'); $email = $this->request->getParam('email'); $business = $this->request->getParam('business'); $phone = $this->request->getParam('phone'); $rs = $folderObj->insertDataUpload($act_id, $email, $business, $phone); if ($rs) { // $msg = "Data uploaded to the Textm system by:\n\nAccountid: ".$act_id."\nEmail: ".$email."\nBusinessname: ".$business."\nPhone: ".$phone; // $folderObj->sendEmail($email, "New data upload", $msg); echo 'TRUE'; } else { echo 'FALSE'; } } exit; }