|
Posted by Lars Eighner on 10/22/07 21:06
In our last episode, <ffik1p$n5g$1@gondor.sdsu.edu>, the lovely and talented
Fester Bestertester broadcast on comp.lang.php:
> 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?
No PHP solution is possible to this problem. PHP works server-side. It has
no way of knowing what occurs in the browser. All can ever know is what
data is posted, and if the user does not submit the data, PHP must know
nothing.
--
Lars Eighner <http://larseighner.com/> <http://myspace.com/larseighner>
Countdown: 455 days to go.
What do you do when you're debranded?
[Back to original message]
|