Welcome Guest, Not a member yet? Register   Sign In
simpler way to find request method
#7

[eluser]zauber[/eluser]
[quote author="Michael Wales" date="1198103376"]If you use validation, the following three will all be equal:

Code:
$_POST['var'];
$this->input->post('var');
$this->validation->var;

Without validation, omit the 3rd line.[/quote]

The docs say, regarding the input class, that it:

Quote:...Filters the POST/COOKIE array keys, permitting only alpha-numeric (and a few other) characters...

On the other hand, no mention of this filtering appears together with the description of the input->post() function, so perhaps it's something that's done at construction time.

I suppose it doesn't matter unless I want to:
foreach($_POST as $key=>$val){...do something irresponsible with $val }

...which I of course wouldn't Smile


Messages In This Thread
simpler way to find request method - by El Forum - 12-19-2007, 07:26 AM
simpler way to find request method - by El Forum - 12-19-2007, 08:11 AM
simpler way to find request method - by El Forum - 12-19-2007, 09:39 AM
simpler way to find request method - by El Forum - 12-19-2007, 09:45 AM
simpler way to find request method - by El Forum - 12-19-2007, 10:29 AM
simpler way to find request method - by El Forum - 12-19-2007, 10:29 AM
simpler way to find request method - by El Forum - 12-19-2007, 01:36 PM
simpler way to find request method - by El Forum - 12-19-2007, 04:45 PM
simpler way to find request method - by El Forum - 12-19-2007, 05:29 PM
simpler way to find request method - by El Forum - 12-20-2007, 01:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB