Validation of Empty Fields

#2
[eluser]ebynum[/eluser]
Upon viewing this again, there is no reason not to simplify this a little more, to:

Code:
/************   FIX   *************/
if ( ! in_array(’required’, $ex, TRUE) && ! in_array(’force_rules’, $ex, TRUE))
{
    if ( ! isset($_POST[$field]) OR $_POST[$field] == ‘’)
    {
        continue;
    }
}


Messages In This Thread
Validation of Empty Fields - by El Forum - 03-28-2008, 06:50 PM
Validation of Empty Fields - by El Forum - 03-31-2008, 06:58 AM
Validation of Empty Fields - by El Forum - 03-31-2008, 07:24 AM
Validation of Empty Fields - by El Forum - 03-31-2008, 07:32 AM
Validation of Empty Fields - by El Forum - 03-31-2008, 07:42 AM
Validation of Empty Fields - by El Forum - 03-31-2008, 07:55 AM
Validation of Empty Fields - by El Forum - 03-31-2008, 08:24 AM
Validation of Empty Fields - by El Forum - 03-31-2008, 08:49 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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