Problem with refresh on page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aetoc
Forum Commoner
Posts: 37
Joined: Tue Jan 31, 2006 2:48 am

Problem with refresh on page

Post by aetoc »

The problem I have is this.

I have page index.php (base name="index") From ther I go (new window) to library.php

library.php has a form. the target of the form is library_update.php. When Library_update.php ends ther is a header("Location: that returns to the library.php

So far it works perfect. The problem is that I want to refresh index.php when I push the submit button in library.php OR befor the header("Location: in library_update.php OR when I exit the library.php.

If anywone cam help me I will apriciate.

Thanks anyway.
User avatar
ok
Forum Contributor
Posts: 393
Joined: Wed May 31, 2006 9:20 am
Location: The Holy Land

Post by ok »

It's JS and not PHP....

I think that you need to add to your form:

Code: Select all

onSubmit="top.history.go()"
(http://javascript.internet.com/buttons/ ... utton.html)
OR

Code: Select all

onSubmit="top.location.href='index.php'"
(http://grizzlyweb.com/webmaster/javascripts/refresh.asp)
Post Reply