hi, im only a beginner in doing a web. im creating a simple filemaintenance just like in VB. i have my design now. i've create a function as you can see below. i put the function inside <INPUT....... onClick='btnLogInclick()'> and its gives me an annoying output. theres no output in that code. can any give me a piece of advice. thx
<script language=VBScript>
function btnLogInclick()
Dim StrAuthUser,StrUserName
Dim Conn, Rst
set Conn = server.CreateObject("Adodb.Connection")
set Rst = server.CreateObject("Adodb.Recordset")
Conn.Open("Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=Sample;Data Source=SI12")
set Rst = Conn.Execute("SELECT * FROM tblUserAuthentication")
if Rst.EOF = false then
Response.Write("GRANTED")
else
Response.Write("DENIED")
end if
end function
</script>