you cannot change the page after you have started sending it.. this is a limitation of HTTP not PHP.
You will probably need to send some javascript along with your php to do the frame reloading, or find a neater way to do it On Tue, 2003-12-02 at 14:12, Christian Jancso wrote: > 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