Welcome Guest, Not a member yet? Register   Sign In
if the parameter value has slash, how can i pass it to codeigniter url
#9

[eluser]searain[/eluser]
"encode" the value before pass
$value = str_replace('=', '-', str_replace('/', '_', base64_encode($value)));

"decode" the value after receive
$value = base64_decode(str_replace('-', '=', str_replace('_', '/', $value)));

You can write a helper like this.

I don't do this on the values input by the end users.

And after receive the value, I validate the value again.


Messages In This Thread
if the parameter value has slash, how can i pass it to codeigniter url - by El Forum - 06-28-2011, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB