as i have mentioned if i use the js way ,i still need to add "?a=1",there is no difference from the get way! thanks for your advise!
as i have mentioned if i use the js way ,i still need to add "?a=1", ------------------------????I don't think you must use "get" to send the data. var data = "fromurl=123.php"; xmlHttp.open("POST", "check.php" ,true); xmlHttp.onreadystatechange = yourfunction; xmlHttp.setRequestHeader('Content-Type", "application/x-www-form-urlencoded;"); xmlHttp.send(data); and in check.php: $fromurl = $_POST['fromurl'];
可以用fsocket模拟post动作PHP手册上有,自己看
sorry,i misunderstood you,maybe i can slove the problem now,but i am not familiar with the xmlhttp object,so i need to check it out,thanks again.
thanks for your advise!
------------------------????I don't think you must use "get" to send the data.
var data = "fromurl=123.php";
xmlHttp.open("POST", "check.php" ,true);
xmlHttp.onreadystatechange = yourfunction;
xmlHttp.setRequestHeader('Content-Type", "application/x-www-form-urlencoded;");
xmlHttp.send(data);
and in check.php:
$fromurl = $_POST['fromurl'];