reload page after removing row from sql
<p>Been hustling with this for a while but cant still get the page to reload after deleted a row.</p>

<p>The row removing is working fine, but it only appears after I reload the page. 
Been moving around some of the code to get it read when pressing submit but no luck.
Any Ideas ?</p>

<pre><code> &lt;?php
mysql_connect("localhost", "root", "") or die(mysql_error()) ; 
mysql_select_db("booking") or die(mysql_error()) ;

$resultselect = mysql_query("SELECT * FROM test_mysql ") or die(mysql_error()); 
?&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; 

&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt; 

    &lt;head&gt; 
        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt; 
        &lt;title&gt;row delete&lt;/title&gt; 
        &lt;link rel="stylesheet" type="text/css" href="" /&gt; 
    &lt;/head&gt; 

    &lt;body&gt;
&lt;?php 
    if(isset($_POST['done'])){
    $done = implode(',', $_POST['done']);
    $deletequery = "DELETE FROM test_mysql WHERE id IN ($done)";
    $resultdelete = mysql_query($deletequery) or die(mysql_error());
    }

    ?&gt;

    &lt;form method="post" action=""&gt;
    &lt;?php while($row = mysql_fetch_array($resultselect)){?&gt;
        &lt;input type="checkbox" name="done[]" 
    id="&lt;?php echo $row['id'] ?&gt;"
    value="&lt;?php echo $row['id'] ?&gt;"&gt;
    &lt;label for="&lt;?php echo $row['id'] ?&gt;"&gt;
    &lt;?php echo $row['name'] . ' ' . $row['lastname']. ' '.$row['email']; ?&gt;
    &lt;/label&gt;
    &lt;br /&gt;
    &lt;?php } ?&gt;
    &lt;input type ="submit" value ="submit"&gt;
    &lt;/form&gt;
    &lt;?php 

    if($resultdelete) {
        echo 'Item(s) deleted from list.';
    }
    ?&gt;

    &lt;pre&gt;
    &lt;?php print_r($_POST) ?&gt;
     &lt;/pre&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>
