CodeIgniter Forums
Passing more than one variable from view page to controller in mvc - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Passing more than one variable from view page to controller in mvc (/showthread.php?tid=60004)



Passing more than one variable from view page to controller in mvc - El Forum - 12-26-2013

[eluser]rash[/eluser]
Hello all

Can anyone solve my problem?
My problem is i am trying send more than one variable from view page to controller with <a href =""> link,, but it didn't show .... the code is

Code:
<a href="&lt;?php echo URL;?&gt;dashboard/edit_sp/&lt;?php echo $value['sample_id'];?&gt;&&lt;?php echo $value['board_type'];?&gt;"> Edit </a>

in controller page when i am trying to retrieve this it didn't work and the code is :

Code:
public function edit_sp($arg, $arg1)
{
  echo $this->view->board_type = $arg1;;
  $this->view->sptlist = $this->model->TitleList();
  $this->view->spdetails = $this->model->SpDetails($arg);
  $this->view->render('dashboard/edit_sp/'.$arg1);
}

can anyne help for this....

Thanks



Passing more than one variable from view page to controller in mvc - El Forum - 12-26-2013

[eluser]Massaki[/eluser]
Change "&" for "/"