提交时出现错误!
<script language="VBScript">
function CheckForm()
if document.frmProfile.PName.value.length=0 then
call alert("please input your name.")
call document.frmProfile.PName.focus()
CheckForm=false
exit function
end if
CheckForm=true
end function
</script>
<form name="frmProfile" action="chkregister.asp" method="post" onsubmit="return CheckForm();" >
当提交时,document.frmProfile.PName.value.length有错误提示,没有找到对象,这是怎么回事?