if($_GET[mode]) { $mode = $_GET[mode]; $url = $_GET[url]; $ip = $_SERVER[REMOTE_ADDR]; $fp = fopen("msg.txt","a+"); fputs($fp,"$ip ".date("Y-m-d H:i:s")." $mode $url\n"); fclose($fp); exit;}?> <br/>function msg(v) {<br/> view.innerHTML = '<iframe src="msg.php?mode='+v+'&url='+location.href+'">';<br/>}<br/>