Tip of the day - you can have HTML button and input widgets outside of a form, so long as you tag the widget with a form attribute with the right id.

(Been waiting a few days to post this, took a little time to get the fix posted).