Hello. I'm creating a site that uses php/mysql. Operations are done in my tables depending on data passed through the url via get method or post. My problem shows itself in two occasions:
1st -> when the data is passed in the url, everytime the user does a refresh or goes back to a page previously visited using back the page reprocesses whatever he did to the db, which is bad.
2nd -> When the user goes back or refreshes as above, the browser says something like: the page was created with information you submited yada yada yada press refresh to resend everything (again, this is BAD :mad: )
How to solve this?
I though that if I send, along with the data already going through via URL or POST, something about a unique db status nothing would be reprocessed, I'd just add something like bellow:
if (table's status NOW is different than on the URL/POST)
do nothing
else
work
Is there any unique status in tables I could access? Something like "last changed"?
:rolleyes: Thanks