I want to pass 3 variables from view to controller. how I'll pass these using site_url,
my view page
foreach ($query2 as $row2) {
$id = $row2->id;
$month = $row->month;
$year = $row->year;
}
<td><a href = "/money_c/updatemanual?var1=<?php echo $id;?>&var2=<?php echo $month;?>">insert</a></td>
controller money_c
function updatemanual($id, $month, $year) {
}
How will take this variables here $id,$month,$year?