I'm not sure how to do this: Once a row is added with muy 'add' action, i want to send the user to my 'view' action so they can see the row that was submitted. But seeing as it was just submitted, I want to show the user a succes message that their data was submitted.
I show my rows this way: url.com/view/32
I only want to show the succes message if they just submitted something, not when they're only reading data.
So I want to pass something like $submitted = true
to my view Action, but I have no idea how to do this. Any suggestions?
Also, another way I thought of, was checking if the visitor is coming from my add action, and if so, show the success message. Again, not sure how to do this though...