Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: PerlMonks and the vote system

by mortis (Pilgrim)
on Aug 12, 2004 at 01:55 UTC ( [id://382141]=note: print w/replies, xml ) Need Help??


in reply to PerlMonks and the vote system

I make this a habit when developing web applications to always return a redirect from form posts. It provides for a better user experience - users will often leave a result page (like an order summary) and then use the dreaded back button to return to it, sometimes saying yes to the 'resubmit form data' question.

Responding with a redirect to the initial POST avoids this (in most cases), and the aforementioned multiple submission issue. You don't even have to resort to javascript to prevent them from using the back button :)

It's just a better experience for the user.

Kyle

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://382141]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-04-16 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found