Ah. You must have been coding with register_globals set to on. Very very very bad idea.
If you want to access a variable set in the query string, what you are doing is passing data using the GET method. The POST method is used when POST'ing data from forms (i.e. sending them in the HTTP headers, NOT appending them to the URL). Respectively, the two methods have superglobals that you use to access data passed through them.
Since we are using the GET request, you'll retrieve the 'id' value like so:
$id = $_GET['id'];
Though, I would do some error checking, such as:
if(empty($_GET['id'])) {
die('Error: No record ID to delete.');
} else {
$id = intval($_GET['id']);
}
You'll notice that I also used the [man]intval[/man] function. This is to make sure people don't try to to some nasty SQL injection and that we know for sure that the 'id' we are using in the query is an integer, not a string of malicious data.
EDIT: For more information about these superglobals ($GET, $POST, etc.), visit the man page for: [man]variables.predefined[/man].