|
|
<%
else
userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If userip = "" Then userip = Request.ServerVariables("REMOTE_ADDR")
Randomize
an= int((10-1+1) * RND +1)
if sex="男" then
tx="xus/images/lylan-"&an&".gif"
else
tx="xus/images/lynv-"&an&".gif"
end if
conn.Execute "insert into [ly] ([adduser],[email],[sex],[tx],[title],[content],[ip],[addtime],[bm]) values('"&username&"','"&email&"','"&sex&"','"&tx&"','"&title&"','"&content&"','"&userip&"',now(),'"&bm&"')"
conn.close:set conn=nothing
Response.Redirect "xus/ly.asp"
end if
%>
|
|