Reputation: 99
my view page
i have variables $month,$year,$id.in my viewpage.i want to pass this to controller function using echo form_open for updation
echo form_open('money_c/updatemanualdata/'.$id,$month,$year);?>
how will call this in my controller money_c
function updatemanualdata('')..?>
here what will i put please help
Upvotes: 0
Views: 580
Reputation: 502
If your form action will be
echo form_open('money_c/updatemanualdata/'.$id.'/'.$month.'/'.$year);
You can catch that in your controller using url segment like this.
be sure to load the url helper $this->load->helper('url')
function updatemanualdata($id, $month, $year){}
Upvotes: 2