Well I do not know what else to do.
Please tell me what is wrong. It works fine in HTML format, but in WML does not work. May be is the conecction?
Her is ths ASP code:
<%
dim cn
dim rs
dim scheckname
dim scheckpa
Session("UserName")=""
scheckname=Request("txtusuario")
scheckpa=Request("txtpassword")
if scheckname="" then Response.Redirect "wmluser.html"

Set Cn = Server.CreateObject( "ADODB.Connection" )
Cn.Open "PROVIDER=SQLOLEDB;DATA SOURCE=LGPP-D704093332;UID=sa;PWD=;DATABASE=hhpp"
sSQL = "SELECT * FROM USERLIST WHERE username='" & scheckname & "'"
set rs = cn.Execute(sSQL)
if rs.EOF then
rs.close
cn.close
'Response.Redirect "wmluser.wml"
end if

if UCase(rs.Fields("contrasena")) <> UCase(scheckpa) then
rs.close
cn.close
'Response.Redirect "wmluser.wml"
end if

rs.close
cn.close

Session("UserName")= scheckname
response.write("<p>datos correctos¡</p>")
%>

Here WML:

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="login" title="Móvil-bank">
<p>
Bienvenido<br/>
usuario: <input type="text" name="txtusuario"/>
Password:<input type="password" name="txtpassword"/>
<do type="accept" label="Aceptar">
<go method="post" href="http://localhost/test/procesarlogin.asp"/>
</do>
</p>
</card>
</wml>