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

2003服务器上无法显示验证码怎么解决

dhdhzzw 发布于 2008-03-26 10:07, 976 次点击
如图

本来是有验证码的
我本地使用的也是2003 sp1 可以显示,放在服务器上就不能显示
注:不是显示叉,而是什么都不显示,,
调用验证码的代码如下
<td><div align="right">验证码:</div></td>
            <td><input name="vvv" type="text" class="aninput" id="vvv" size="10">
              <script language="javascript" type="text/javascript" src="count.asp?sid=1"></script></td>
5 回复
#2
madpbpl2008-03-26 10:14
检查count.asp
#3
dhdhzzw2008-03-26 10:33
count.asp
<%
select case request("sid")
case "1"
yzma="uselogin"
case "2"
yzma="reg"
case "3"
yzma="gou"
end select

'---+---使用部分---------------+---------------------
function letter()
  for n=1 to 8
    randomize timer
   s=97+int(rnd*26)
 response.write chr(s) '你也可以使用大小写转换函数 ucase(A) lcase(a)
  next
end function

'---+---测试部分---------------+---------------------
function yanzhengma(yzma)
for n=1 to 9
  randomize timer
    s=97+int(rnd*26)
      if s<97 or s>122 then
counttong=counttong&chr(s)
      else
counttong=counttong&chr(s)
  end if
next
counttong=left(counttong,4)
session(yzma&"counttong")=counttong
end function

if Trim(Request.QueryString("shuaxin"))="1" then
call yanzhengma(yzma)
Response.Write("<LINK href='fun/style.css' rel=Stylesheet type=text/css><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>")
Response.Write("<font size=4 style='FONT-FAMILY: Tahoma,Verdana,宋体;' ><b>"&session(yzma&"counttong")&"</b></font> <a href=# onClick=location.reload()><font style='FONT-FAMILY: Tahoma,Verdana,宋体;font-size: 9pt;'><u>刷新</u></font></a>")
else
response.write( "document.write[bo]('<iframe width=90 height=23 ALIGN=top SCROLLING=no id=shuaxin  src=fun/count.asp?sid="&request("sid")&"&shuaxin=1></iframe>')[/bo];" )
end if
'---+---结束测试---------------+---------------------
%>
这段代码在本地测试没问题的,,,放到服务器上就说有错
单个浏览count.asp结果是这样的

[[it] 本帖最后由 dhdhzzw 于 2008-3-26 10:47 编辑 [/it]]
#4
madpbpl2008-03-26 10:42
fun文件夹是怎么会事?
楼主检查一下相对位置是否正确
#5
dhdhzzw2008-03-26 10:47
路径绝对正确,第一个我只是把它删了
路径正确,第一个也有fun 我只是法帖是把它删了。count 在fun文件夹下,,在我机上显示正常,上传上去不显示

有没有可能,,2003不识别别框架呢?
#6
dhdhzzw2008-03-26 10:53
我找出错误了,谢谢。。madpdpl
原来count.asp最后面被别人加入了,51yes统计代码,但却调用不到了,,我把它删了就好了
1