Get user input securely PHP CodeIgniter


show more Getting user input securely provides you with in-depth training on Developer. Taught by Jon Peck as part of the Up and Running with PHP CodeIgniter show less
please wait ...

Getting user input securely

The CodeIgniter input class, which is initialized automatically, serves two purposes. Securely pre-processing global input data, and providing helper functions for getting input data. Among other things, it destroys global variables if register_globals is turned on. Filters the GET, POST and COOKIE array keys, and provides optional cross site scripting attack filtering. Let's go back to the magazine controller. Before I show the success message, let's save a new magazine issue. I'll start by loading the model. This -> load -> model issue.

Then, I'll create a new instance of the issue model. Issue equals new issue. I'll set the publication ID, issue -> publication id equals this, and I'm going to use the input class post method with one argument. So input -> post, a string containing the element I'm looking for, which is the publication id. I'll do the same for the issue_number, equals this -> input -> post -> issue_number, and the issue date of pu...

Getting user input securely
Video duration: 2m 28s 1h 30m Intermediate

Viewers:

Getting user input securely provides you with in-depth training on Developer. Taught by Jon Peck as part of the Up and Running with PHP CodeIgniter

Subject:
Developer
Software:
PHP CodeIgniter
Author:
please wait ...