a little tip that is not actually the problem here but it migth com in
handy in the future...whenever you use the $_GET into an if statement
remember to use the isset() function.
if (isset($_GET['var']))
is better then:
if ($_GET['var'])
they should both work but the second may sometime give you some
problems...