|
Posted by The Natural Philosopher on 10/22/07 19:48
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?
Only way is via javascript.
Something like "onunload submit".
But the syntax is far more complex.
Another way to achieve what you want is to use javascript to submit the
form any time anything changes using teh onchange function.
Navigation:
[Reply to this message]
|