Welcome Guest, Not a member yet? Register   Sign In
Erasing characters from get()
#1

[eluser]estel[/eluser]
Hi, I am new in using codeingiter, and I need help. Problem is:

if i want to get somtehing from url, it erase characters like for example "+":

Code:
www.page.com/info?vs=abc+3i%
echo $this->input->get($vs);

and it give me jusl "abc 3i%"

please help me
#2

[eluser]cahva[/eluser]
That is correct. + is space when url is encoded. Server will decode those for you. If you want to get the encoded version, then encode it again using urlencode() function.
#3

[eluser]estel[/eluser]
Thanks + is now seen!!

And I have very similar problem:

when I am pulling data from database, and there are characters < > -> they are erased from the string.

How can I get data without loosing data?

ThankS!!
#4

[eluser]cahva[/eluser]
They are there but you just wont see them(Check the html source from your browser). If you want to show those from the browser, use for example htmlspecialchars() function when outputting that. You should always do that when printing the output to browser unless theres actual html you want the browser to parse.
#5

[eluser]estel[/eluser]
Thanks a lot!!! It was really helpfull. :wow:




Theme © iAndrew 2016 - Forum software by © MyBB