The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Input class - question - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: Input class - question (/showthread.php?tid=956) |
Input class - question - baljee - 02-16-2018 Hi, The html entities function of the input class. What is the added bonus over not doing it? it causes names to saved not fully as they are created. Kind regards Baljé(<- like my é) Input class - question - dan - 02-16-2018 Yeah. Every once in a while it makes sense to not do it. You can just use $_POST['form_field_name']; A lot depends on what you're going to do with that data. If you aren't sanitizing on the way in, you might want to consider sanitizing on the way out when you're displaying the code itself. Especially if it is somewhere where your users are entering content that will be displayed. You don't want them to be able to write javascript in there that gets renedered |