' character inside input |
[eluser]Juzt1s[/eluser]
Hello, every time I put ' inside input box and pass it, I get HTTP 500 error (blank page). How Do I avoid this? I've tried checking if ' in input and then replace it with something else, but I get the problem where ' character is inside string. ex: Stacy's project.
[eluser]Juzt1s[/eluser]
[quote author="InsiteFX" date="1353480647"]Handling quote characters in HTML form input fields [/quote] Release simple and done the job. Thnx. Code: $name= htmlentities($this->input->post('name'), ENT_QUOTES);
[eluser]Aken[/eluser]
[quote author="Juzt1s" date="1353481883"]I want to ask something else. I have a column which contains 1000 characters, but I get only 255 of them. Why is that?[/quote] Change your column type to TEXT. |
Welcome Guest, Not a member yet? Register Sign In |