Reply to Re: Dirty Form Error Trapping?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на 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

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