Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
No method allowed, pls help!!
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 · ·