win2000系统下 点击后出现下载保存框 这是如果点击“打开”按钮 就又出现一次一样的下载框 再点击打开 才能打开。 点击 下载按钮和取消按钮 就不会出现2次
除2000系统外 其他系统都正常
使用了多个win2000都这样 什么原因呢
以下是一个测试用的csv代码,测试中发现使用submit();的话就2次 使用超级连接就不会出2次
-------------------------------------------------------
代码 a.php
<script language="javascript">
function a()
{
document.proc12.submit();
}
</script><form action="b.php" method="post" name="proc12">
<input type="submit" value="qw" name="sub" />
<input type="text" value="890" name="sub" />
</form> ----------------------------------------------------------
代码 b.php
<?phpheader( "Content-type: application f; charset=utf-8" );
header( "Content-Disposition: attachment; filename=2.txt" );
print_r($_POST);
?>
除2000系统外 其他系统都正常
使用了多个win2000都这样 什么原因呢
以下是一个测试用的csv代码,测试中发现使用submit();的话就2次 使用超级连接就不会出2次
-------------------------------------------------------
代码 a.php
<script language="javascript">
function a()
{
document.proc12.submit();
}
</script><form action="b.php" method="post" name="proc12">
<input type="submit" value="qw" name="sub" />
<input type="text" value="890" name="sub" />
</form> ----------------------------------------------------------
代码 b.php
<?phpheader( "Content-type: application f; charset=utf-8" );
header( "Content-Disposition: attachment; filename=2.txt" );
print_r($_POST);
?>
这样试试
哦 我的代码原来就是这样的 也不好用 所以改submit试试的