Welcome Guest, Not a member yet? Register   Sign In
Posting form htmlentities
#1

[eluser]Clooner[/eluser]
I'm trying to wrap my head around this but I don't seem to grasp the concept.

Input from a form (utf-8) on a html 5(utf-8) page gets posted to a ci project (utf-8) then when I insert an & symbol it get's posted correctly and I encode the html entities so I can show them on my website. Then if I do exactly the same thing with an currency symbol e.g. € the input get's deleted!. I found the input get's deleted in the utf-8 class(uni) in the function clean_string. Now I'm thinking my input is crooked. How can I make sure I post using utf-8?

form and html header code
Code:
<!DOCTYPE HTML>
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Title goes here!&lt;/title&gt;
    &lt;meta charset="UTF-8" /&gt;

Code:
&lt;form action="http://localhost/edit/1" method="post" accept-charset="utf-8" id="edit_form"&gt;


Messages In This Thread
Posting form htmlentities - by El Forum - 06-07-2011, 02:35 AM
Posting form htmlentities - by El Forum - 06-07-2011, 05:44 AM
Posting form htmlentities - by El Forum - 06-07-2011, 08:35 AM
Posting form htmlentities - by El Forum - 06-07-2011, 08:39 AM
Posting form htmlentities - by El Forum - 06-07-2011, 09:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB