Re: Prevention for multiple submissions from the same form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The most common method I've seen is with Javascript.   onsubmit, disable 
submit button.

As a backup, in case the user's JS is disabled, you might consider the unique 
ID thing.

-TG

----- Original Message -----
From: "T K" <tek.katu@xxxxxxxxx>
To: php-db@xxxxxxxxxxxxx
Date: Thu, 4 Oct 2007 20:09:01 +0900
Subject:  Prevention for multiple submissions from the same form

> Hi,
> 
> I have a form with a button, which adds user inputted data into
> database. I've been looking for a way to prevent users from pressing
> the same button twice mistakingly.
> 
> I've learned that this is possible to make and send a unique id in
> hidden input, and check if the id is used before database query is
> issued. (PHP Cookbook [O'reilly]).
> 
> But, is there a way to make this happen without using database? It
> would cool if I could only use HTML/JavaScript/CSS.
> 
> Tek.
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux