|
Posted by Shelly on 10/23/07 14:28
"Jeff North" <jnorthau@yahoo.com.au> wrote in message
news:uiqrh31ag7s6el5cl90vch2h9mh9e5h6af@4ax.com...
> On Mon, 22 Oct 2007 09:45:31 -0700, in comp.lang.php Fester
> Bestertester <whatmeworry@mad.net>
> <ffik1p$n5g$1@gondor.sdsu.edu> wrote:
>
>>| Greetings,
>>|
>>| I'm an occasional php/mysql dabbler.
>>|
>>| I have a basic data form with a submit button. Unfortunately, it's still
>>| possible for the user to enter data changes and close the window,
>>| without clicking the submit button, thus losing the data.
>
> I would be asking why the users are doing this then find a solution.
>
>>| Can someone point me to a generic example of some code that will trap
>>| and handle this error?
A "submit" button on a form has a reason for existence. There have been
MANY times that I have entered data on a form and changed my mind before
"submit"ing. I simply closed the window and all was gone! That is the
EXPECTED behavior. If a user is annoyed that this happened, then he should
learn how to use his computer! If data are to be entered whether or not he
clicks the "submit" button, then by all means get rid of that button!
Simply put, I totally disagree with the use of the word "Unfortunately".
Rather, I would have said "dammit" (or worse!) if the data had actually been
entered when I closed the window without clicking "submit".
Shelly
[Back to original message]
|