Posted by Jerry Stuckle on 10/22/07 18:14
Fester Bestertester 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.
>
> Can someone point me to a generic example of some code that will trap
> and handle this error?
>
Nope. There is nothing you can do in PHP (which is server side) to
prevent the user from performing client-side functions such as closing a
window.
But that also should not be considered an error. It should be
considered normal operation, and your script should handle it nicely.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|