• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.