首页 新闻 论坛 群组 Blog 文档 下载 读书 Tag 网摘 搜索 .NET Java 游戏 视频 人才 外包 培训 数据库 书店 程序员
中国软件网
欢迎您:游客 | 登录 注册 帮助
  • 错误类型:Microsoft VBScript 运行时错误 (0x800A000D)类型不匹配: 'scatsonidsubsub'/sale/leasemodule/goodsaddb.asp, 第 69 行 [无满意答案结贴,结贴人:numberljf]
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • numberljf
    • 等级:
    • 可用分等级:
    • 总技术专家分:
    • 总技术专家分排名:
    • 揭帖率:
    发表于:2008-05-16 15:55:09 楼主
    VBScript code
    <!--#include file="up.inc"--> <!--#include file="../ubb/ubb.asp" --> <!--#include file="../Connections/sale.asp" --> <% call up() sub up() Server.ScriptTimeOut=5000 dim upload,file,formElement,formFile,iCount,fileExt,formPath,filename,c_yn,objFSO,newscontent,newstitle iCount=0 set upload = new sjCat_upload Set file = upload.file("fname") filename = "" if trim(upload.Form("G_Total"))="" or trim(upload.Form("G_LeasePrice"))="" or trim(upload.Form("G_Subscription"))="" or trim(upload.Form("G_Content"))="" or trim(upload.Form("G_Title"))="" or trim(upload.Form("G_Name"))="" then dd="\n" aa="" if trim(upload.Form("G_Total"))="" then aa=aa+"请输入商品数量!"+dd end if if trim(upload.Form("G_LeasePrice"))="" then aa=aa+"请输入租借价格!"+dd end if if trim(upload.Form("G_Subscription"))="" then aa=aa+"请输入租借订金"+dd end if if trim(upload.Form("G_Content"))="" then aa=aa+"请不要输入空格!"+dd end if if trim(upload.Form("G_Title"))="" then aa=aa+"请不要输入空格!"+dd end if if trim(upload.Form("G_Name"))="" then aa=aa+"请不要输入空格!"+dd end if response.Write("<SCRIPT>alert('") response.Write(aa) response.write"');history.back();</SCRIPT>" response.end() end if if file.filesize>=0.1 then fileExt=lcase(right(file.filename,4)) if fileExt<>".jpg" then response.Write("文件格式不对,请重新上传!") response.End() end if 'response.write file.filesize &file.filename if file.filesize > 5*1024000 then '这是5M的图片大小数据 'response.write "<font size=2>图片大小超过了限制 [ <a href=# onclick=history.go(-1)>重新上传</a> ]</font>" response.Write("<script language='javascript'>alert('片大小超过了限制,请重新上传!');</script>") response.Redirect("index.asp#send" ) end if filename=formPath&year(now)&month(now)&day(now)&hour(now)&minute(now)&second(now)&fileExt if file.FileSize>0 then file.Save2File Server.mappath("file") & "\" & FileName iCount=iCount+1 end if end if dim scatid,scatsonid,scatsonidsub,scatsonidsubsub scatid=upload.Form("catid") scatsonid=upload.Form("catsonid") scatsonidsub=upload.Form("catsonidsub") scatsonidsubsub=upload.Form("catsonidsubsub") if scatsonidsubsub<>0 then scatid=scatsonidsub scatsonid=scatsonidsubsub elseif scatsonidsub<>0 then scatid=scatsonid scatsonid=scatsonidsub elseif scatsonid<>0 then scatid=scatsonid else scatsonid=scatid end if set a=server.createobject("ADODB.recordset") sqlstr="select G_Title,G_Name,G_LeasePrice,G_Subscription,SO_ID,G_Content,G_Pic,G_IsOnShell,G_Total,G_IsOnLease,SU_ID,SH_ID from goods" a.open sqlstr,MM_data_STRING,3,2 a.addnew a("G_Title")=trim(upload.Form("G_Title")) a("G_Name")=trim(upload.Form("G_Name")) a("G_LeasePrice")=trim(upload.Form("G_LeasePrice")) a("G_Subscription")=trim(upload.Form("G_Subscription")) a("SO_ID")=scatsonid a("G_Content")=trim(upload.Form("G_Content")) if FileName<>""then a("G_Pic")=FileName end if a("G_Total")=trim(upload.Form("G_Total")) a("G_IsOnLease")=1 a("G_IsOnShell")=0 a("SU_ID")=session("SUID") a("SH_ID")=session("SH_ID") a.update() a.close() set file=nothing set upload=Nothing set a=nothing response.Redirect("shellup.asp") end sub %>
    20  修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • tantaiyizu
    • 等级:
    • 可用分等级:
    • 总技术专家分:
    • 总技术专家分排名:
    • 2

    发表于:2008-05-16 16:12:201楼 得分:0
    69行的地方是?
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • kane_zuo
    • 等级:
    • 可用分等级:
    • 总技术专家分:
    • 总技术专家分排名:
    发表于:2008-05-16 16:17:142楼 得分:0
    scatsonidsubsub=upload.Form("catsonidsubsub")
    检察前一张页catsonidsubsub 名称是否正确
    是否可以传递过来?/
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • numberljf
    • 等级:
    • 可用分等级:
    • 总技术专家分:
    • 总技术专家分排名:
    发表于:2008-05-16 16:18:133楼 得分:0
    if scatsonidsubsub <>0 then
    scatid=scatsonidsub
    scatsonid=scatsonidsubsub
    elseif scatsonidsub <>0 then
    scatid=scatsonid
    scatsonid=scatsonidsub
    elseif scatsonid <>0 then
    scatid=scatsonid
    else
    scatsonid=scatid
    end if
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • numberljf
    • 等级:
    • 可用分等级:
    • 总技术专家分:
    • 总技术专家分排名:
    发表于:2008-05-16 16:18:554楼 得分:0
    可以传过来.是正确的..
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    • coldice319
    • 等级:
    • 可用分等级:
    • 总技术专家分:
    • 总技术专家分排名:
    发表于:2008-05-16 17:01:405楼 得分:0
    太少注析了
    修改 删除 举报 引用 回复

    网站简介广告服务网站地图帮助联系方式诚聘英才English 问题报告
    北京创新乐知广告有限公司 版权所有 京 ICP 证 070598 号
    世纪乐知(北京)网络技术有限公司 提供技术支持
    Copyright © 2000-2008, CSDN.NET, All Rights Reserved