Welcome Guest, Not a member yet? Register   Sign In
Form Validation - Modify Second Parameter
#2

[eluser]psychoder[/eluser]
never done that before... but got it working by using a protected or private variable( in a class),
assign the value to be used in a callback function to that variable and access or use that in your
callback function

Code:
class ....{

   protected $data_for_callback;

   ....

   method calling_form_validation()
   {
       $this->data_for_callback = value_to_be_used_in_call_back;
   }

   callback_method($param)
   {
       //access or use it now
       $this->data_for_callback ....
   }
}

cheers Wink


Messages In This Thread
Form Validation - Modify Second Parameter - by El Forum - 01-30-2012, 05:13 PM
Form Validation - Modify Second Parameter - by El Forum - 01-30-2012, 05:32 PM
Form Validation - Modify Second Parameter - by El Forum - 01-30-2012, 05:40 PM
Form Validation - Modify Second Parameter - by El Forum - 01-30-2012, 05:48 PM
Form Validation - Modify Second Parameter - by El Forum - 01-30-2012, 05:50 PM
Form Validation - Modify Second Parameter - by El Forum - 01-30-2012, 05:52 PM
Form Validation - Modify Second Parameter - by El Forum - 01-30-2012, 05:56 PM
Form Validation - Modify Second Parameter - by El Forum - 01-30-2012, 06:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB