I have a page that loads info from a file. You can click on a button, which takes you to another page to edit the file entries.
If I then use the back button to get back to the page that shows the file, I have to manually refresh before it will show my changes.
Is there a way around this?
refresh after back button
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Does your page to edit the file have a form with an action="somefile.php" type thing?
If it does then just stick
at the end of it (so long as nothing is outputted (echo'd or print'd) in that file before the header().) That way they wont even get the opportunity to click back cos they'll just end up back there anyway.
EDIT: By "it" I meant at the end of the somefile.php given in your action attribute. The file that processes the reuquest to edit the file.
If it does then just stick
Code: Select all
header('location: your_initial_file.php');EDIT: By "it" I meant at the end of the somefile.php given in your action attribute. The file that processes the reuquest to edit the file.