test2.html的代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script language="javascript">
function send(){
var test1=document.getElementById("text").value;
var test2=document.location.href;
alert(test1);
alert(test2);
document.location.href='test2.php?test1='+test1+'&test2='+test2;
}</script>
</head><body>
<input type="text" id="text" value="ssss" />
<input type="button" onclick="send();" />
</body>
</html> test2.php的代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
2
<input type="text" disabled="disabled" value="<?php echo $_GET['text1']?>"  />
<input type="text" disabled="disabled" value="<?php echo $_GET['test2']?>"  />
</body>
</html>
发现只能传一个参数,test1的参数怎么都传不过来,请问是怎么回事??