J
Jonathan Scott
I am programming a form where the user can input some data which can then be
saved to a field in a table. One button is for saving the changes, one is for
canceling. If the user clicks cancel, there should be no changes saved, right?
Wrong, the database contains the changes the user made.
So, why is my form updating my database without my permission? It shouldn't
do anything I haven't told it to. How can I make my form behave itself?
Second question is, why does my data disappear in the form when I tab past
the last element? Is there some kind of implicit "clear data from view" when
a user tabs past the last element on the page?
Any help would be greatly appreciated,
Jonathan Scott
saved to a field in a table. One button is for saving the changes, one is for
canceling. If the user clicks cancel, there should be no changes saved, right?
Wrong, the database contains the changes the user made.
So, why is my form updating my database without my permission? It shouldn't
do anything I haven't told it to. How can I make my form behave itself?
Second question is, why does my data disappear in the form when I tab past
the last element? Is there some kind of implicit "clear data from view" when
a user tabs past the last element on the page?
Any help would be greatly appreciated,
Jonathan Scott