I am a newbie using asp, however what i am trying to do is quite basic and i believe all is correct. am i forgetting to do something with the server?
any ideas? pls help
Many thanks in advance
"Error 405 Method Not Allowed
The requested method POST is not allowed for URL /Asp_pages/loginaction.asp"
My Web Form:
My Response Page:
<%@ LANGUAGE="VBSCRIPT" %>
<% p_username = Request.form("p_username")
p_password = Request.form("p_password")
set cn = Server.CreateObject("ADODB.Connection")
sqlText="select * from Members where username='"&p_username&"'"
set userSet = cn.Execute(sqlText)
if userSet.EOF then
'No such username, so the recordSet is empty
'The username is good, now let's check the password
real_password = trim(userSet("password"))
if p_password = real_password then
'Password is good, too
'Username is good, but password is wrong
set userSet = Nothing
set cn = Nothing
0 · ·