i use echo "<SCRIPT language=\"JavaScript\">\n"; echo "javascript:top.location.href='{$placetogo}';\n"; echo "</SCRIPT>";
and if you want to refresh a specific frame, replace top in the script for the frame name -- Luke "Christian Jancso" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi there > > I have some problems with PHP. > > I have a website with different frames where different actions take > place. > One frame needs a button (here: "Delete") which: > 1. reloads another frame > 2. reloads itself > > The code looks like: > > if (isset($_POST['action'])) > { > if ($_POST['action'] == "Delete") > { > $id = $_POST['absolute']; > > $activity = mysql_query("SELECT id FROM > activity WHERE station = '$station'"); > $activity_fetch = mysql_fetch_array($activity); > > $delete_activity = mysql_query("DELETE FROM > activity where id = '$id'"); > > $update_stations = mysql_query("UPDATE > stations set status = 1, timestatus = 0 where station = '$station'"); > > header("Location: http://127.0.0.1/empty.php"); > > } > } > > With HTML it is <body onload="........">. But this doesn`t work here > because I have sent the header already. > Can anyone help me? > > > TIA > Christian > -- > ---------------------------- > NextNet IT Services > Christian Jancso > phone +41.1.210.33.44 > facsimile +41.1.210.33.13 > ---------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php