ASP问题在线求救

haifang_li 2002-04-22 06:41:08
function remoteIP(){
remoteIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
if remoteIP = "" then
remoteIP = Request.ServerVariables("REMOTE_ADDR")
end if
}
错误提示:
Microsoft VBScript 编译器错误 错误 '800a03ea'

语法错误

/ubb/inc_top.asp,行4

function remoteIP(){
^
请问上述function有何不妥?
...全文
17 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
haifang_li 2002-04-22
  • 打赏
  • 举报
回复
我怎么给你分?
bbschat 2002-04-22
  • 打赏
  • 举报
回复
vb 不用 {}
用 Function 和 End Function
秋风ss落叶 2002-04-22
  • 打赏
  • 举报
回复
function remoteIP()
remoteIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
if remoteIP = "" then
remoteIP = Request.ServerVariables("REMOTE_ADDR")
end if
end function

vbs里函数不是你那样定义的!不要{和}
秋风ss落叶 2002-04-22
  • 打赏
  • 举报
回复
function remoteIP()
remoteIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
if remoteIP = "" then
remoteIP = Request.ServerVariables("REMOTE_ADDR")
end if
end function

vbs里函数不是你那样定义的!不要{和}

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧