if(theForm.InfoType.value == ""){
alert("请选择祝福语类型!")
return
} if(theForm.InfoContent.value == ""){
alert("请填写详细的祝福语!")
return
}是什么类型的form
alert("请选择祝福语类型!")
return
} if(theForm.InfoContent.value == ""){
alert("请填写详细的祝福语!")
return
}是什么类型的form
调试欢乐多
window.open("add.asp","","width=,height=,...")add.asp里面
<form>
<input type=button value="确定" onclick="javascript:checkall(this.form)"></form><script>
function checkall(theForm){
theForm.method="post"
theForm.action = "add_submit.asp"
theForm.submit()
}
</script>里面没有涉及到传文件或图片的东西
theForm.method = "post"
theForm.action = "add_submit.asp"
theForm.submit()
你看看,看看你的哪些表单里面的对象存不存在,
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<form method=post action="">
<input type="button" onclick='javascript:checkall(this.form);'>
</form>
<script language="JavaScript">
<!--
function checkall(theForm){ theForm.method = "post";
theForm.action = "add_submit.asp";
theForm.submit()
}
//-->
</script>
</body>
</html>