Cambia esto:
$key=$_REQUEST[key];
Por esto:
$key= adslashes($_GET['key']);
Con $_GET, recojes todas las variables enviadas por el metodo GET. Mas info aca:
http://www.php.net/manual/es/reserved.variables.get.php
adslashes() evita que te cracken tu sitio por sql injection.