Welcome Guest, Not a member yet? Register   Sign In
Best way to pull off a "success" message?
#4

[eluser]ekeretex[/eluser]
Ideally (even for displaying error message) you should not show your status messages on the same page as your post.
This elimates the danger of double submission and the alert box that pops up if a user refreshes a page after doing a post.
Details here and here.

I personally use the OBSession session library, pass all status messages (errors and success) into a flash variable, redirect (to the same page, sometimes) and then display the status messages.

This method ensures the page the user sees is always displayed via a get.


Messages In This Thread
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 06:17 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 06:27 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 06:31 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 06:34 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 06:35 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 06:38 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 07:03 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 08:57 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 09:01 PM
Best way to pull off a "success" message? - by El Forum - 01-21-2008, 09:08 PM
Best way to pull off a "success" message? - by El Forum - 01-24-2008, 08:03 AM
Best way to pull off a "success" message? - by El Forum - 01-24-2008, 12:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB