[
]我刚做过,成功:
.............
<script language="JavaScript" type="text/JavaScript">
function add_onclick()
{
ls_year =do
cument.formtran.Lm_year.value;
ls_month =do
cument.formtran.Lm_month.value;
ls_path =do
cument.formtran.FILE.value;
if ((ls_year == "" )||(ls_year == null))
{
alert("请选择增加年度!");
return false;
}
if ((ls_month == "" )||(ls_month == null))
{
alert("请选择增加月份!");
return false;
}
if ((ls_path== "" )||(ls_path == null))
{
alert("请选择总评文档资料!");
return false;
}
do
cument.formtran.METHOD="POST";
do
cument.formtran.action="/jsp/app/ap/upload.jsp?nd="+ls_year+"&yf="+ls_month+"&path="+ls_path;
do
cument.formtran.target="_blank";
formtran.submit();
}
</script>
..........
<FORM METHOD="POST" NAME="formtran" ACTION="" ENCTYPE="multipart/form-data">
...................................
<input name="add" type="button" id="add" value="增加文件" language=javascript onClick="return add_onclick()" >
</FORM》