程序问题,谁知道这是怎么了阿

来源:百度知道 编辑:UC知道 时间:2024/09/24 04:52:16
<%
dim a,b,c
a=request.form("yhm")
b=request.form("mm")
c=request.form("leixing")
if c="ѧÉú" then
c="2"
else
if c="½Ìʦ" then
c="0"
else
if c="¹ÜÀíÔ±" then
c="1"
end if
end if
end if
set cn1=server.createobject("adodb.connection")
cn1.open "provider=sqloledb;uid=sa;pwd=123;initial catalog=data;data source=(local)"
set rs1=server.createobject("adodb.recordset")
rs1.open "select * from users where username='" & a & "' and password='" & b & "' and flag='"& c &"'",cn1
if rs1.eof then
%>
<html>
<head>
<title>
ѧ¼®ÐÅÏ¢¹ÜÀíÏ&m

字符集的问题。
在<head>里加上这句话
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

这是那钟编码的问题你用了什么UF8的 是吧 换一个