public function savevalueAction()
 {
     global $mySession;
     $db = new Db();
     $this->_helper->layout->setLayout('main');
     $cid = $this->getRequest()->getParam('cid');
     $myform = new Form_Setgoal();
     if ($this->getRequest()->isPost()) {
         $request = $this->getRequest();
         //error_log('savevalueAction() request: '.print_r($request, true));
         $no_oftee = $_REQUEST['no_of_tee'];
         $baseprice = $_REQUEST['basepricefield'];
         if ($myform->isValid($request->getPost())) {
             $dataForm = $myform->getValues();
             //error_log('savevalueAction() form valid, values: '.print_r($dataForm, true));
             $mySession->setgoalvalues = $dataForm;
             $mySession->no_of_t = $no_oftee;
             $mySession->baseprice = $baseprice;
             if ($cid == "" && $mySession->TeeLoggedID != "") {
                 $myObj = new Launchcampaigndb();
                 $campid = $myObj->savesetgoal($dataForm);
                 if ($campid != "") {
                     $mySession->lid = $campid;
                     $this->_redirect('launchcampaign/adddescription/lid/' . $campid);
                 } else {
                     $this->_redirect('launchcampaign/adddescription');
                 }
             } else {
                 if ($cid != "") {
                     $this->_redirect('launchcampaign/adddescription/cid/' . $cid);
                 } else {
                     $this->_redirect('launchcampaign/adddescription');
                 }
             }
         } else {
             $this->view->myform = $myform;
             $this->render('setgoal');
         }
     } else {
         $this->_redirect('launchcampaign/setgoal');
     }
 }