=====show.htm=========
<form name="form1">
<input type=text name=t1>
<input type=text name=t2>
<input type=button name=b1 onclick="click1()">
</form>
<iframe id="getData" style="display:none;"></iframe><script>
function click1(){
document.all('getData').src="getData.php?row="+document.form1.t1.value;
}
</script>==========getData.php========
<? t1=$_GET['t1'];
//sql="select t2 from .... where ...=t1
//........
//从数据库中获得t2,自己写
?><script>parent.form1.t2.value=<?=t2;?>;
</script>
差不多就是这个意思,自己测试一下吧
<form name="form1">
<input type=text name=t1>
<input type=text name=t2>
<input type=button name=b1 onclick="click1()">
</form>
<iframe id="getData" style="display:none;"></iframe><script>
function click1(){
document.all('getData').src="getData.php?row="+document.form1.t1.value;
}
</script>==========getData.php========
<? t1=$_GET['t1'];
//sql="select t2 from .... where ...=t1
//........
//从数据库中获得t2,自己写
?><script>parent.form1.t2.value=<?=t2;?>;
</script>
差不多就是这个意思,自己测试一下吧
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货