Welcome Guest, Not a member yet? Register   Sign In
CIiBug? Url Encode /Url Decode problem in url Query Strings
#8

[eluser]sophistry[/eluser]
ok, much clearer now (but you are still using the word "into" wrong - i think you mean to use the english word "in")... "into" is used to describe an action (e.g., "i put the duck into the garbage" is OK - emphasizes the action), it's a little confusing because "in" can also be used to describe an action (e.g., "i put the duck in the garbage" is OK - emphasizes the duck's location) but "in" is also used to describe a state of something (i.e, where it is located). "into" is never used to describe a state or location of a thing. so, your sentence: "i have an input text into a form" is not OK. the correct word is "in": "i have an input text field in a form" is OK.

in step #3 rawurlencode('a + b') should give you a string like (EDIT - forum is changing percent sign HEX codes):
Code:
a%2_0%2_B%2_0b (hex with underscores)

does it give you that string? that's the string i see when i do this:

EDIT - added controller code
Code:
function encode_test($s)
{
print_r(rawurlencode('a + b'));
print_r(rawurlencode($s));
print_r(rawurlencode($this->uri->segment(3)));
print_r(rawurldecode($this->uri->segment(3)));
}


Messages In This Thread
CIiBug? Url Encode /Url Decode problem in url Query Strings - by El Forum - 11-04-2009, 12:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB