日期:2014-05-18  浏览次数:20641 次

一个SCRIPT中的错误,
我在向SQL添加记录的时候如果输入的文章字符太多了,就会出现SCRIPT错误,不知道这是表单文本域的问题还是SCRIPT的问题?望高人指点,代码如下:
<script   language= "javascript ">
function   check()  
{  
    if   (document.Form1.content.value   ==   " ")  
    {  
        alert( "请输入信息! ");  
        document.Form1.content.focus();  
        document.Form1.content.select();  
        return   (false);  
      }  

    document.Form1.submit()  
}  
</script>  

<form   action= "add_run.jsp "   name= "Form1 "   id= "Form1 ">
<textarea     class= "TextBox "   name= "content "     rows= "10 "   cols= "28 "> </textarea>
<input   onclick= "check() "   type= "button "   value= "GO "   name= "button "   />
</form>

------解决方案--------------------
<form method= "post " ....