注册 登录
编程论坛 ASP技术论坛

ASP中关于变量的问题

guaishi 发布于 2007-11-13 09:58, 426 次点击

<%function into(i,b)
dim j,h
"corp7_"&j= trim(Request.Form("corp7_"&j))
if j=1 then
if "corp7_"&j ="" then
h=0
else
h=1
end if
elseif j>1 then
if "orp7_"&j="" then
h=h+0
else
h=h+1
end if
end if
set bb=server.CreateObject("adodb.recordset")
sql="select * from corpuser_info where username='"&session("username")&"'"
bb.open sql,conn,1,1

if "corp7_"&j="" then
else
bb("corp7_"&j)="corp7_"&j
end if
bb.update
return h
end function%>
<%dim s,bb
for s=1 to 15
call into()
next
bb=h
if bb<=5 then
else
session("feiyong")=(bb-5)*100
end if
%>
那个变量的问题搞不明白,
Microsoft VBScript 编译器错误 错误 '800a0400'

缺少语句

/Reg_Guide/member/uservip_affirm.asp,行 349

"corp7_"&j= trim(Request.Form("corp7_"&j))
^
提示错误信息.

4 回复
#2
t是变量2007-11-14 08:58
赋值号左边应当是个变量。
#3
yms1232007-11-14 09:00

/Reg_Guide/member/uservip_affirm.asp,行 349

"corp7_"&j= trim(Request.Form("corp7_"&j))

uservip_affirm.asp里拼接字符串的地方处错误,楼主检查一下这个页面。

#4
guaishi2007-11-16 14:42

我想问一下那句如何改或

#5
guaishi2007-11-16 14:43
<img src="dot.jpg"><a href="../index/index2.asp?id=<%=left("rb"&i("id"),2)%>"><%="re"&i("corp_producttype")%>&nbsp;<%="re"&i("english")%></a><br> <!--输出大类的链接-->
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="dot.jpg"><a href="../index/index3.asp?upid=<%=left("rb"&i("id"),4)%>"><%="rj"&i("corp_producttype")%>&nbsp;<%="rj"&i("english")%></a><br> <!--输出二级类的连接-->
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img src="dot.jpg"><a href="../index/index4.asp?guanlian=<%="ji"&i("jobf"&i)%>"><%="rh"&i("corp_producttype")%>&nbsp;<%="rh"&i("english")%></a><br> <!--输也三级类的连接-->

<%="ji"&i("jobf"&i)%>">这个有问题如何改或
1