Welcome Guest, Not a member yet? Register   Sign In
Validation and GET values
#4

[eluser]xwero[/eluser]
The method you can extend the input class with to alter the input is
Code:
function alter_input($value,$functions)
{
    $func_arr = explode('|',$functions);
    foreach($func_arr as $func)
    {
       if($func == 'xss')
       {
         $value = $this->xss_clean($value);
       }
       else
       {
          if(function_exists($func))
          {
             $value = $func($value);
          }
       }
    }
}

It's a quick fix method. I will post an extended input class soon.


Messages In This Thread
Validation and GET values - by El Forum - 04-02-2008, 01:56 PM
Validation and GET values - by El Forum - 04-02-2008, 02:46 PM
Validation and GET values - by El Forum - 04-02-2008, 02:52 PM
Validation and GET values - by El Forum - 04-02-2008, 03:33 PM
Validation and GET values - by El Forum - 04-02-2008, 03:37 PM
Validation and GET values - by El Forum - 04-02-2008, 04:24 PM
Validation and GET values - by El Forum - 04-03-2008, 02:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB