header()
| From: | Ohlson Stefan | Date: | Mon, 18 Sep 2000 07:00:59 +0000 |
| Subject: | header() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17123@lists.php.net to get a copy of this message | ||
I have 3 frames and from one I want to refresh another.
Can I use header("Location:...") to do that?
I've tried this:
header("Location: ./selected_items.php3/ Window-target=main");
and
header("Location: ./selected_items.php3/ Window-target=_parent");
but it doesn't work.
<?
if ($action == "delete_item") {
for($i=1;$i<$total_items;$i++) {
if ($items_tray[$i] == $remove_item_no) {
setcookie("items_tray[$i]", "");
}
}
header("Location: ./selected_items.php3/ Window-target=main");
}
unset($action);
print "<HTML><HEAD><TITLE></TITLE></HEAD>";
print "<BODY bgcolor='#D6D6D6'></BODY></HTML>";
?>
Thanks