Guys, my brains fried and is not working. need your help.
I've got an Entity let's call it "Item",
in my Item controller I have the following actions
/item/index
:: Views the item, submits POST to /save
/item/update
:: Validates and saves Item fields to DB and redirects back to /index
/item/create
:: Creates a blank form to add a new Item, submits to itself, validates, saves and redirects to /index to view it.
/item/delete
:: Confirms delete, deletes from database if yes, and redirect back to /list/
My question is how do you guys prevent resubmission of the data to the DB, if the user clicks the back button?
303 Redirect? like this: http://en.wikipedia.org/wiki/Post/Redirect/Get
Is there anyway for header("Location..") to wipe the history and replace the page just like javascript window.location.replace() ?
Thanks,
Dan