Welcome to the forum. Please edit your first post to enclose your code in [CODE][/CO
DE] tags. It makes things much easier on the eyes.
Now, as for the buttons, as far as I am aware forms should be using <input type="submit" ......./> elements for sending form data. This is what I routinely use and I never have issues with it. The submit button really only submits the name of the button and the value on the button. So, for example, this button:
<input type="submit" name="this_submit_button" value="Go!" />
would pass this variable data:
That comes in handy if you have more than one type of submit button (such as "save and add another" vs. "save and go to next step" buttons) and need to pay attention to the user's intended submit type.
Now, if you simply want to pass other ancillary variables you should either be keeping/setting session variables or else using hidden input elements to pass the data like so:
<input type="hidden" name="this_variable" value="the_data" />
and on a successful submission this would pass this_variable=the_data to the server.