Duplicate the form that contains the button and set it's action to a different URL. Then, when pressed, only that different URL will receive the data.
Obviously, as others have noted, there are Javascript mechanisms to achieve this but if those are not needed...