I guess the problem is in the script... i used to code like this:
<form action='file.php' name='formname' method='POST'>
<input type='text' name='asdf'>
<input type='submit' name='saveb' value='Save'>
</form>
and in file.php
if ($saveb == 'Save') {
save_foo(); // do save stuff
} else {
include('form.php'); // show form html
}
testing if button variable has value assigned to it is a bad way to program, better test $asdf value, becase if you press enter, the button var gets no value..
another way to solve it is a js event onSubmit on form tag, setting saveb value..
i hope it helps.
[]