[問題] 請教關於ASP
我能把程式碼寫在記事本後另存成.asp嗎?
雖然我基本的測試能成功,可是現在連接資料庫後~就會出現500伺服器錯誤說
↓程式碼如下
<%
name=request("Name")
job=request("Job")
id=request("ID")
psw=request("Password")
response.write name & " 姓名"
Set conn = Server.CreateObject("ADODB.Connection")
DBPath = Server.MapPath("test.mdb")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
Set writ = Server.CreateObject("ADODB.Recordset")
writ.addnew
writ("id")=name
writ("name")=job
writ.update
writ.close
conn.close
%>
<html>
<body>
</body>
</html>
謝謝各位的幫忙!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.225.157.100
→
10/25 12:23, , 1F
10/25 12:23, 1F
討論串 (同標題文章)