<% function chkstr(str) chkstr=true if not isnumeric(str) then chkstr=false end if if len(str) <> 11 then chkstr=false end if end function if chkstr(trim(request("phonenum"))) then %> <% '手机吉凶 'on error resume next dim phonenum,temp phonenum=cstr(trim(request("phonenum"))) phonenum=mid(phonenum,8) phonenum=int(phonenum) phonenum=phonenum/80 temp=int(phonenum) phonenum=phonenum-temp phonenum=int(phonenum*80) phonenum=cstr(phonenum) if phonenum="0" then phonenum="81" end if %> <% dim sql,num,title,jx,content sql="select * from shouji where num='"&phonenum&"'" set rs=conn.execute(sql) if not (rs.bof and rs.eof) then num=rs("num") title=rs("title") jx=rs("jx") content=rs("content") end if %> <% '输出 If Err Then response.Write "手机吉凶查询内容出错!" err.Clear Response.End End If dim tempstr if xing<>"" then tempstr=xing&ming else tempstr="这位先生或者女士" end if tempstr=tempstr&",您的手机 "&cstr(trim(request("phonenum")))&"

" tempstr=tempstr&"吉凶指数为: "&num&"

" tempstr=tempstr&"状态为: "&title&"

"&jx&"

"&content %>
请输入您的手机号码:

<%=tempstr%>
<%else%>
请输入您的手机号码:

<%="请输入正确的手机号码!"%> 有些人会问,手机号码为什么会影响一个人的运势?其实这就像风水、阳宅会影响运势命运的意义是一样的。虽然这只是一个号码,但是它与您的生活息息相关,也代表您与所有人的沟通桥梁!所以『吉』与『凶』关系非常大!而且网友来信都一一印证,的确不可轻忽!
<%end if%>