Page 1 of 1

Problem with refresh on page

Posted: Thu Jul 13, 2006 4:29 am
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.

Posted: Thu Jul 13, 2006 4:38 am
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)