<%@ LANGUAGE="VBSCRIPT"%> <%option explicit%> 21IC - 有奖答题
<% response.write "赛普拉斯-有奖测试活动于9.26日24:00时圆满结束,感谢大家的参与!" response.end %>
<% response.cookies("subperiod")="" Dim Str2, Str3, agent, discuz_auth_key, new_bbs_user_info, tmp_ar Const Key="ca6c55FylvPUNXlf" agent=request.servervariables("http_user_agent") discuz_auth_key=Php_MD5(Key & agent) Str2=request.cookies("aSr_auth") On Error Resume next Str3=uc_authcode(Str2,"DECODE",discuz_auth_key) If Len(Trim(Str3))<2 Then %>

开始答题前必须先登录!请登录:

用户名:
密  码:
 
url=http://cn.21ic.com/customer/cypress/201205/answer.asp">免费注册
<% Else If Len(Trim(Str3))>0 And Err.number=0 then tmp_ar=Split(Str3,Chr(9)) new_bbs_user_info=tmp_ar(2) ' 利用xmlhttp通过user_id获得username DIM Http DIM username DIM URL Set Http = SERVER.CREATEOBJECT("Microsoft.XMLHTTP") URL = "http://bbs.21ic.com/api/dl_api.php?user_id=" & new_bbs_user_info Http.Open "GET",URL,FALSE Http.send(null) Dim ArrHttp,ai ArrHttp = Split(Http.ResponseText,"""") username = ArrHttp(7) response.cookies("cypress")("user_id") = ArrHttp(3) response.cookies("cypress")("username") = ArrHttp(7) Set Http = Nothing If Len(Trim(ArrHttp(3)))>0 And Len(Trim(username))>0 then ConnectDatabase Dim rs, sqlstr set rs = server.createobject("adodb.recordset") sqlstr="select * from [users] where username='" & username & "' and ans_company='cypress'" rs.CursorLocation=3 rs.open sqlstr,myconn,1,3 if rs.bof or rs.eof Then rs.addnew rs("bbs_userid") = ArrHttp(3) rs("username") = username rs("ans_company") = "cypress" rs("accessip")= Request.ServerVariables("REMOTE_ADDR") rs.update end If rs.close Set rs=Nothing CloseDatabase End if End If %>

请更新您的信息,以确保获奖后可以联系到您并邮寄奖品!

用 户 名* <%=ArrHttp(7)%>
真实姓名* <%=ArrHttp(191)%>
单位名称* <%=ArrHttp(195)%>
联系地址* <%=ArrHttp(199)%>
省/市* <%=ArrHttp(203)%>   <%=Session(207)%>
邮政编码 <%=ArrHttp(211)%>
固定电话* <%=ArrHttp(215)%>
手    机 <%=ArrHttp(219)%>
     
<% End if%>