Re: reload farmes

From: Date: Wed, 03 Dec 2003 04:21:17 +0000
Subject: Re: reload farmes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-171635@lists.php.net to get a copy of this message
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" <christian@cafe.ch> wrote in message news:3FCC9DE0.FE2AC2A2@cafe.ch... > 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 > ----------------------------

« previous php.general (#171635) next »