[eluser]Edemilson Lima[/eluser]
Change
Code:
<a href="<?=site_url().'test/view/'.$this->encrypt->encode($row->user_id);?>"><?=$row->display_name;?></a>
To:
Code:
<form action="<?=site_url().'test/view/'?>" method="post" style="margin:0px; float:left">
<input type="hidden" name="user_id" value="<?=$this->encrypt->encode($row->user_id)?>" />
<input type="submit" value="<?=$row->display_name?>" /></form>
This will show a button instead of a link. You can change the layout of the submit button adding an inline CSS if you don't want a button there.
At your "/test/view" controller you will need to get the $this->input->post('user_id') instead of the segment or the parameter passed to the function.
Remember that after submiting a form using post, the back button will not work as before.
The style="margin:0px; float:left" at the form tag is to make it fit in the page like a link. May you need to change this.