note 42216 added to function.header
| From: | junkjunk16 at yahoo dot com | Date: | Sat, 08 May 2004 08:36:45 +0000 |
| Subject: | note 42216 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69338@lists.php.net to get a copy of this message | ||
I was actually looking up the exact method to do a refresh button without resorting to javascript.
Well, it all rolled up into
something far more complicated with headers and cacheing, and various browser incompatibilities.
It was too complicated. I feel stupid for writiting this but if you want to manually refresh you
browser from a button or a link using php: Do two redirects.
In A.php write...
<A Href=\"redirect.php\">Refresh</A>
In B.php write...
<?php
header("location:http://localhost//A.php")
exit();
?>
It works, but it's dang ugly.
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42216
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42216&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42216&report=yes
Search -- http://master.php.net/manage/user-notes.php