CodeIgniter Forums
Encrypt? - 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: Encrypt? (/showthread.php?tid=29533)



Encrypt? - El Forum - 04-12-2010

[eluser]suba[/eluser]
Hi,

URL:
-------
http://example.com/sims/index.php/exam/results/nric/aWZP5qalu0rQoDVYgWTiKUlzQw1G3QRvpC1FkWKLLaXG+ymVAReCsphynTLuQg0K7dXm7h+1IX8Y4Xb9U9R+uw==
This is my url.
Code:
function results()
{
$this->load->library('encrypt');
$this->data['title']='display students\' results';
$this->load->view('header/menu_link',$this->data);
$this->data['show']=1;
$this->load->view('students_index',$this->data);
$str=$this->encrypt->decode($this->uri->segment(3)); // get uri value.
}
I want get data from URL.
So I used uri helper
Without encryption , I can get uri value through
Code:
$this->uri->segement(3)

But encoded value, I cannot get through
Code:
$this->uri->segement(3)
error comes out
The URI you submitted has disallowed characters.

can you suggest me , how do i get encoded string/value from uri?

Thanks for your advice


Encrypt? - El Forum - 04-12-2010

[eluser]Mischievous[/eluser]
The URI can't contain the + or = sign... either take those out of your encoded string or change the allowed characters in the config.php file


Encrypt? - El Forum - 04-13-2010

[eluser]suba[/eluser]
HI,
Thank you so much for your advice.