function form_submiter($tabaction = array("tomail")) { if ($this->instanceVar->varpost("formsubmit")) { //prepare submit (get form structure, get data post, prepare data to insert into db or to send mail) $preform = $this->getPreform(); if ($this->includer->include_pratikclass("Form")) { $instanceForm = new PratikForm($this->initer); $instanceForm->submiter($preform, $tabaction); } } }