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

[eluser]searain[/eluser]
base64_encode is the approach i was looking for. Thanks for all your help.

base64_encode has / = which are not valid url characters in CI.

So I could use the str_replace, say replace / with _ replace = with -. and then replace them back and base64_decode it.

Is this the right way to pass the parameter value in url in CI? It has been a trouble for CI that sometimes we need pass values in url and these values have the invalid characters. And I don't want to loose the universal set up for the valid uri characters.

Of course, this way, we get around the uri character validation checking, so we need be extra careful, validation checking these values.


Messages In This Thread
if the parameter value has slash, how can i pass it to codeigniter url - by El Forum - 04-14-2011, 12:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB