Vijay Kumar koganti wrote:
Isn't it a better idea to implement it at the confirmation page ?
Are we talking about how to make the Saloon a better web site, or are we just talking about random programming topics here? I can't tell if you are trying to report an actual problem (I don't see one here) or just trying to talk shop.
The pattern you describe is indeed the right way to prevent double-submits when it matters; the pattern is used elsewhere on the Saloon, actually. Now, if you were ordering something from an e-commerce site, then yes, the programmer should do whatever possible to prevent an accidental double order.But in this case, all the page does is send an email to the person making the request. Sending a hundred emails wouldn't do any actual harm, so there's really no reason for the redirect and extra page request.