probabile che sia il register_globals a off. recupera l'id dall'array get prima.
$id = $_GET['id'];