I have designed one sign-up form,in this form after getting all necessary values I will click submit button.
And while clicking that submit button I want to call one function and I want to pass the arguments to that function.
I have written code for this purpose,but the function is called first before getting the details.(i.e)after getting the details in sign-up form I need to pass these values to one function and I need to validate those values.
But what happened was,before getting the details the function get called.
Carlos’s suggestion is one way. Another is to put a command callback on the button that reads the values out of the form and calls your function, perhaps like this.
I’m assuming you’ve bound the fields of the form to the variables
$var1and$var2here; modify to fit your own situation of course.