Instead of adding another hidden form var of load_type=ins or upd,
an easier way is to make use of the fact that a variable that doesn't get a value is undefined in Perl.