MySQL html special chars record problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: MySQL html special chars record problem (/showthread.php?tid=29825) |
MySQL html special chars record problem - El Forum - 04-22-2010 [eluser]prototype20[/eluser] Hi Guys! I have a big problem. I write this in into input field: <h1> or whatever html special character, gets into the mysql so: Code: & l t ; h1 & g t ; Why?! My View file: Code: <?php header('Content-Type: text/html; charset=utf-8'); ?> mysql character set: utf - 8 unicode collation: utf8 general ci php file: utf-8 without bom sorry for my bad english, please help me! MySQL html special chars record problem - El Forum - 04-22-2010 [eluser]danmontgomery[/eluser] Code: htmlentities($bevezeto) I would guess you're running xss_filter on form validation, too (or have global xss filtering enabled) |