![]() |
problem with html tags from forms - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: problem with html tags from forms (/showthread.php?tid=4530) |
problem with html tags from forms - El Forum - 11-30-2007 [eluser]Zerg[/eluser] I've got very weird problem with CI. I have form with inputs, textareas inside. When I try to display some data from form everything looks fine. The error appear when any html tag is in input or textarea for example Code: <b>bold</b> After submit controller displays nothing. Literally nothing - no errors, no data from form and even <code>echo 'Hello World' </code> doesn't work. htmlspecialchars(), striptags() etc don't work. I'm using php in 5.2.5 version. TIA. problem with html tags from forms - El Forum - 11-30-2007 [eluser]Majd Taby[/eluser] Are you saving the data in the database? or is this happening when you're repopulating the form? some code would be great. My first guess is that the data isn't getting into your db. problem with html tags from forms - El Forum - 12-01-2007 [eluser]Zerg[/eluser] Yes, I'm trying to save data in the database, but apparently problem is in getting values from form. Everything (saving in the database too) when I don't type html tags in form. Maybe as you suggest some code would help The view: Code: <?php The controller: Code: // [...] part of class Scripts And the model: Code: [...] part of class Scr It can't be simpler, I suppose. problem with html tags from forms - El Forum - 12-01-2007 [eluser]xwero[/eluser] Just a guess but have you put the global xss to true? problem with html tags from forms - El Forum - 12-01-2007 [eluser]Zerg[/eluser] xwero: Yes i put it to true. |