NYCPHP Meetup

NYPHP.org

[nycphp-talk] Premature submit

Tom Sartain tomsartain at gmail.com
Wed Oct 3 12:07:56 EDT 2007


You could also just check that the form fields are not empty when processing
the form.. or put the submit button *after* all of the fields.

Javascript is too breakable to rely on for process intensive things... also,
what happens if someone uses the site with javascript turned off? The form
will be completely unusable.

On 10/2/07, Urb LeJeune <urb at e-government.com> wrote:
>
>         Had a client who twice lost existing content while making a change
> using a CMS. Turns out the problem was they he was using a DSL line
> and he made a change and hit the "Submit Changes" button before the
> page had fully downloaded. Needless to say the undownloaded textarea
> fields were empty and were written to the DB.
>
>         Is there a way to disallow a form submit before the entire form
> has downloaded?
>
>         Thanks
>
> Urb
>
> Dr. Urban A. LeJeune, President
> E-Government.com
> 800-204-9545
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20071003/b9d355c9/attachment.html>


More information about the talk mailing list