The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Digging the new Input Class - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28) +--- Forum: Documentation (https://userspice.com/forums/forumdisplay.php?fid=30) +--- Thread: Digging the new Input Class (/showthread.php?tid=36) |
Digging the new Input Class - mudmin - 01-27-2016 I'm really digging the input class. I need to roll a change out to version 3.x, but basically instead of doing something like Code: $permission = ($_POST['name']); you can do Code: $permission = Input::get('name'); And it grabs the get OR post input and completely sanitizes it with this... Code: return trim(htmlentities($string, ENT_QUOTES, 'UTF-8')); That's a ton of functionality with one slight change to grabbing your inputs. And it's available to everyone using UserSpice 3.1.1 or later. |