索引.php
<head>
<script>
function getpage(pageName) {
var obj = new ActiveXObject("msxml2.xmlhttp");
obj.open("GET", pageName);
obj.send('A=1&B=2&C=3');
var txt = obj.responseText;
myText.value += txt;
}
</script>
</head>
<body>
<input type="text" id="myText"/>
<input type="button" onclick='getpage("http://localhost/Last/callPageForIE/info.php")';/>
</body>
</html>
信息.php
<?php
$A = $_GET['A'];
$B = $_GET['B'];
$C = $_GET['C'];
$sum = $A + $B + $C;
echo "your sumuatsdion is ".$sum;
?>
试图从 info.php 得到结果,但它总是给我零我不知道为什么,有人能告诉我我的错误在哪里吗?