Forcing user to new page in php. (PHP newbie)
<p>Hello  I'm a newbie web programmer.
My background is writing Windows applications with sql.</p>

<p>I'm putting together my 1st data entry screens in Php.</p>

<p>I have a search form that links to a form that displays records in a grid.
On each row of the grid I have a delete url to allow the user to remove a record.
This links to a form delete.php (which calls the sql to remove the record).</p>

<p>Ideally I would like to automatically take the user back to the search form rather than forcing the user to click on a link to do so.</p>

<p>I have used ob_start with the header to do this elsewhere but cannot get it to work on this page.
Is there another way to do it?</p>

<p>(Using php 5 as part of LAMP)
file delete.php</p>

<pre><code>&lt;?php 
$id = $_GET['recordID'];
//ob_start();
require_once('connections/local.php'); 

mysql_select_db($database_local, $local);

mysql_query("DELETE FROM user_access WHERE id = {$id}") or die(mysql_error());
echo("Record ".$id." deleted");
echo("&lt;br&gt;");
//header("location:http://localhost/search7.htm);
//ob_flush();
echo("&lt;a href=\"http://localhost/search7.htm\"&gt;Search for Members&lt;/a&gt;");

?&gt;
</code></pre>
