I have a small problem. I am sending a mail when an item needs attention. I am getting the encrypted string, but when I decrypt it I get nothing .. Anything wrong in my code? Thanks in advance
Encrypting parameter (ID):
$this->load->library('encrypt');
$yes = site_url('job/itemFree/?id='.$this->encrypt->encode($itemid));
$no = site_url('job/itemExtend/?id='.$this->encrypt->encode($itemid));
Decrypting :
$this->load->library('encrypt');
$id = $_GET['id'];
$id = $this->encrypt->decode($id);
echo $id;
try this
instead of passing parameter in id using get you can do it like this
Now to get it you need to do.