This is because all GET variables are lost. The page reloads, so the url is set to the default. If you want to pass GET variables to POST, insert them in hidden fields into the form, then grab them again using POST. Here is a sample:

<?php
$get = $_GET['variable'];
?>
<form>
<input type="hidden" value="$get" name="get">
</form>
<?php
if(count($POST)>0)
{
     $postedGet = $_POST['get'];
}
?>

Or simply adding the id again:

<form action='<?php $_SERVER['PHP_SELF'];?>?id=<?php $_GET['id'];?>' method='POST'>

Maybe not pretty, but I hope it gives some clues to what I'm suggesting.

thanks for your replies
the below code is working for me

<form method="post" name="form2" action="<? echo $_SERVER["REQUEST_URI"]; ?>"
This question has already been answered. Start a new discussion instead.