Welcome Guest, Not a member yet? Register   Sign In
callback validation help
#1

[eluser]dadamssg[/eluser]
im trying to write functions that check dates but im not sure how to use them in a validation script. I know you can use callbacks for your own functions but i don't know how to use it for this.
Code:
function date_exists($month,$day,$year)
    {
        if(checkdate($month,$day,$year))
          {  
            return TRUE;
          }
        else
          {
          return FALSE;
          }
    }

i need to use this twice...once for the start date and one for the end date. i can't see how i can do that using the $rules[]


Messages In This Thread
callback validation help - by El Forum - 01-12-2010, 12:34 PM
callback validation help - by El Forum - 01-12-2010, 01:51 PM
callback validation help - by El Forum - 01-12-2010, 02:09 PM
callback validation help - by El Forum - 01-12-2010, 02:12 PM
callback validation help - by El Forum - 01-12-2010, 02:13 PM
callback validation help - by El Forum - 01-12-2010, 02:20 PM
callback validation help - by El Forum - 01-12-2010, 02:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB