ASP+ACCESS搭建的后台,能提交短文章,但不能提交长文章的问题

来源:百度知道 编辑:UC知道 时间:2024/09/22 10:03:35
这是ADDok.asp的原代码

<!--#include file="../conn.asp"-->

<%
title=request("title")
cont=request("news_content")
bigclass=request("bigclass")
if cont="" then
response.Write("<script>alert('请添加详细信息');history.go(-1);</script>")
end if

img=request("newsimages")
tupian=request("news_images")
if img="you" then '有图片时
if tupian="" then
response.Write("<script>alert('请选择图片');history.go(-1);</script>")
end if
end if

if tupian<>"" then
if lcase(right(tupian,4))<>".gif" and lcase(right(tupian,4))<>".jpg" then
response.Write("<script>alert('上传图片的格式必须是.gif或.jpg!');history.go(-1);</script>")
end if
end if

if tupian=&

第一:你的cont 支持长篇幅文章;
第二:你的数据库里面的content 应该使用备注类型!

你看看你的数据库字段长度设定的是多少.

你看看数据库中向对应字段那里,是否有限制。

你可以把字段的属性调整成“备注”

表单中,把news_content类型设置为文本域,有多少字都可以提交.
<textarea name=news_comtent cols=20 rows=5></textarea>