for some reason i cant find my error why i cant define my $id variable and paste it into my my_sqly query. everything else is working fine.
Any help would be greatly appreciated.
This is my PHP "process" file (update.php)
    if (isset($_POST['button1'])) 
    { 
        $id = $_POST["id"];
        mysql_query("DELETE FROM member WHERE id = '".$id."'") or die("cannot execute the query");
    }
and my other file
while($row = mysql_fetch_assoc($results))
        {
            $id = $row["id"];
            //echo '<form action="update.php" method="post">';
            echo '<table border="1">';
            echo '<tr>';
                echo '<td> '.$row["username"].'</td>';
                echo '<td> '.$row["password"].' </td>';
                echo '<form method="POST" action="update.php">';
                echo '<input type="hidden" name="return_url" value="'.$_SESSION["return_url"].'" />';
                echo "<input type='hidden' name='hidden_id' value='$id' />";
                echo '<input type="submit" name="button1"  value="My Button">';
                echo '</form>';     
}
 
     
     
    