[eluser]umefarooq[/eluser]
here is my model code
Code:
class FormModel extends Model {
var $id;
var $width;
var $height;
var $scalecontent;
var $firstpage;
var $alwaysopen;
var $autoflip;
var $fliponclick;
var $staticshadow;
var $dynamicshadow;
var $movedspeed;
var $closespeed;
var $gotospeed;
var $pageback;
var $loadondemand;
var $cachePage;
var $cachesize;
function FormModel(){
parent::Model();
}
function insert_entry(){
print_r($_POST);
$this->width = $this->input->post('width');
$this->height = $this->input->post('height');
$this->scalecontent = $this->input->post('scalecontent');
$this->firstpage = $this->input->post('firstpage');
$this->alwaysopen = $this->input->post('alwaysopen');
$this->autoflip = $this->input->post('autoflip');
$this->fliponclick = $this->input->post('fliponclick');
$this->staticshadow = $this->input->post('staticshadow');
$this->dynamicshadow = $this->input->post('dynamicshadow');
$this->movedspeed = $this->input->post('movedspeed');
$this->closespeed = $this->input->post('closespeed');
$this->gotospeed = $this->input->post('gotospeed');
$this->pageback = $this->input->post('pageback');
$this->loadondemand = $this->input->post('loadondemand');
$this->cachePage = $this->input->post('cachePage');
$this->cachesize = $this->input->post('cachesize');
$this->db->insert('flipp_settings',$this);
}
}