Welcome Guest, Not a member yet? Register   Sign In
One Form, Two Buttons
#2

[eluser]xwero[/eluser]
The button that is clicked is added to the post global so your code is correct. But you should check the clicked button to perform the validation so your code would have to be something like
Code:
if(isset($_POST['delete']) && ! $this->validation->run())
{

}
elseif(isset($_POST['cancel']))
{

}


Messages In This Thread
One Form, Two Buttons - by El Forum - 08-01-2008, 03:48 AM
One Form, Two Buttons - by El Forum - 08-01-2008, 03:57 AM
One Form, Two Buttons - by El Forum - 08-01-2008, 04:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB