You are here: Re: Dirty Form Error Trapping? « PHP Programming Language « IT news, forums, messages
Re: Dirty Form Error Trapping?

Posted by Jerry Stuckle on 10/22/07 20:13

The Natural Philosopher wrote:
> 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.
>

Terrible advice. What happens if they put in 1/2 of the data they want
to update, then have to close because they get called away?

Or, if it updates on the fly like you suggest, they update one field and
the system crashes, the power goes out, the internet connection drops -
whatever.

Someone trying to enter a new address comes to mind. You want all of
the changes or none of the changes.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация