Fir things first, REGISTER GLOBALS is OFF be default now, that is why you can not just refer to $data and hope for it to work.
Check your php.ini file
If you do this:
$data = $_GET["data"];
print($data);
It will work.
HOWEVER, you can not pass in spaces in a URL, you need to URLENCODE it or something similar.
-- Jason