How would get a page to refresh upon re-entry....
lets say,
i select a Department, and then click the Edit button which takes me to a new page to edit the Department that was selected. After i edit the Department, and then click my submit button so that the changes take place, how do i get the Edit page to send me back to the first one and refresh it so the new changes are now visible...
I can, and have been, just click the refresh button, but to users checking the page, they might not know this... so i want to do it for them..
any ideas????!!!!!
Thanx-a-mil
negblo
Refresh
Moderator: General Moderators
- trollll
- Forum Contributor
- Posts: 181
- Joined: Tue Jun 10, 2003 11:56 pm
- Location: Round Rock, TX
- Contact:
If you include the following in the head of the HTML for the page to get edited, it should take care of that:
Also, if you keep track of the page the user had visited when they clicked "edit" you can send the user back to that page using a
once everything has gone through okay.
Code: Select all
<meta http-equiv="cache-control" content="no-cache" />Code: Select all
header("location:first_page.php");okay, let me see if i got this::
should go on the Edit.php page itself, all i am editing is a name..
and ::
goes where? and on what page? Admin= first page and Edit=second page
Thanx-a-mil
negblo
Code: Select all
<meta http-equiv="cache-control" content="no-cache" />and ::
Code: Select all
header("location:first_page.php");Thanx-a-mil
negblo
Just as an extra aside, if you really want to prevent caching, duplicate the no-cache header at the end of the HTML page as well.
See http://support.microsoft.com/default.as ... bContent=1 and http://support.microsoft.com/default.as ... bContent=1 for more info.
See http://support.microsoft.com/default.as ... bContent=1 and http://support.microsoft.com/default.as ... bContent=1 for more info.
- trollll
- Forum Contributor
- Posts: 181
- Joined: Tue Jun 10, 2003 11:56 pm
- Location: Round Rock, TX
- Contact:
Code: Select all
<meta http-equiv="cache-control" content="no-cache" />Code: Select all
header("location:first_page.php");