Welcome Guest, Not a member yet? Register   Sign In
Post vars problem
#6

[eluser]CroNiX[/eluser]
@massaki

input::post() will return a boolean FALSE if the POST key doesn't exist, so using is_null() is useless as it will never be null. It will either have the value from the POST array or be boolean FALSE. This will be changing in the future, but not in v2.x.

So checking with === FALSE is the proper way; not checking for evaluating to false (!$character), which a 0 value will do too.


Messages In This Thread
Post vars problem - by El Forum - 09-06-2012, 06:11 AM
Post vars problem - by El Forum - 09-06-2012, 06:20 AM
Post vars problem - by El Forum - 09-06-2012, 06:23 AM
Post vars problem - by El Forum - 09-06-2012, 06:25 AM
Post vars problem - by El Forum - 09-06-2012, 06:28 AM
Post vars problem - by El Forum - 09-06-2012, 11:21 AM
Post vars problem - by El Forum - 09-06-2012, 05:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB